Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v1.15.0/v0.38.0 #4035

Merged
merged 5 commits into from
Apr 28, 2023
Merged

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Apr 27, 2023

Added

  • The go.opentelemetry.io/otel/metric/embedded package. (Add embedded private method interfaces in metric API #3916)
  • The Version function to go.opentelemetry.io/otel/sdk to return the SDK version. (Add Version func to otel/sdk #3949)
  • Add a WithNamespace option to go.opentelemetry.io/otel/exporters/prometheus to allow users to prefix metrics with a namespace. (prometheus: add WithNamespace option to prefix metrics #3970)
  • The following configuration types were added to go.opentelemetry.io/otel/metric/instrument to be used in the configuration of measurement methods. (Add options to measurement methods #3971)
    • The AddConfig used to hold configuration for addition measurements
      • NewAddConfig used to create a new AddConfig
      • AddOption used to configure an AddConfig
    • The RecordConfig used to hold configuration for recorded measurements
      • NewRecordConfig used to create a new RecordConfig
      • RecordOption used to configure a RecordConfig
    • The ObserveConfig used to hold configuration for observed measurements
      • NewObserveConfig used to create a new ObserveConfig
      • ObserveOption used to configure an ObserveConfig
  • WithAttributeSet and WithAttributes are added to go.opentelemetry.io/otel/metric/instrument. They return an option used during a measurement that defines the attribute Set associated with the measurement. (Add options to measurement methods #3971)
  • The Version function to go.opentelemetry.io/otel/exporters/otlp/otlpmetric to return the OTLP metrics client version. (Add Version func to otlpmetric and otlptrace #3956)
  • The Version function to go.opentelemetry.io/otel/exporters/otlp/otlptrace to return the OTLP trace client version. (Add Version func to otlpmetric and otlptrace #3956)

Changed

  • The Extrema in go.opentelemetry.io/otel/sdk/metric/metricdata is redefined with a generic argument of [N int64 | float64]. (Update Histogram Extrema and Sum to be generic #3870)
  • Update all exported interfaces from go.opentelemetry.io/otel/metric to embed their corresponding interface from go.opentelemetry.io/otel/metric/embedded. This adds an implementation requirement to set the interface default behavior for unimplemented methods. (Add embedded private method interfaces in metric API #3916)
  • Move No-Op implementation from go.opentelemetry.io/otel/metric into its own package go.opentelemetry.io/otel/metric/noop. (Move metric No-Op to metric/noop #3941)
    • metric.NewNoopMeterProvider is replaced with noop.NewMeterProvider
  • Add all the methods from "go.opentelemetry.io/otel/trace".SpanContext to bridgeSpanContext by embedding otel.SpanContext in bridgeSpanContext. (Added methods for SpanID and TraceID on bridgeSpanContext #3966)
  • Wrap UploadMetrics error in go.opentelemetry.io/otel/exporters/otlp/otlpmetric/ to improve error message when encountering generic grpc errors. ([exporters/otlp/otlpmetric] Wrap upload metrics error to provide additional context #3974)
  • The measurement methods for all instruments in go.opentelemetry.io/otel/metric/instrument accept an option instead of the variadic "go.opentelemetry.io/otel/attribute".KeyValue. (Add options to measurement methods #3971)
    • The Int64Counter.Add method now accepts ...AddOption
    • The Float64Counter.Add method now accepts ...AddOption
    • The Int64UpDownCounter.Add method now accepts ...AddOption
    • The Float64UpDownCounter.Add method now accepts ...AddOption
    • The Int64Histogram.Record method now accepts ...RecordOption
    • The Float64Histogram.Record method now accepts ...RecordOption
    • The Int64Observer.Observe method now accepts ...ObserveOption
    • The Float64Observer.Observe method now accepts ...ObserveOption
  • The Observer methods in go.opentelemetry.io/otel/metric accept an option instead of the variadic "go.opentelemetry.io/otel/attribute".KeyValue. (Add options to measurement methods #3971)
    • The Observer.ObserveInt64 method now accepts ...ObserveOption
    • The Observer.ObserveFloat64 method now accepts ...ObserveOption
  • Move global metric back to go.opentelemetry.io/otel/metric/global from go.opentelemetry.io/otel. (Move global metric back to otel/metric/global for minor release #3986)

Fixed

Deprecated

@MrAlias MrAlias changed the title Release v1.15.0 Release v1.15.0/v0.38.0 Apr 27, 2023
@MrAlias MrAlias mentioned this pull request Apr 27, 2023
12 tasks
@codecov
Copy link

codecov bot commented Apr 27, 2023

Codecov Report

Merging #4035 (9b374f9) into main (180b355) will decrease coverage by 0.1%.
The diff coverage is 100.0%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #4035     +/-   ##
=======================================
- Coverage   82.2%   82.2%   -0.1%     
=======================================
  Files        176     176             
  Lines      13058   13058             
=======================================
- Hits       10742   10740      -2     
- Misses      2095    2097      +2     
  Partials     221     221             
Impacted Files Coverage Δ
exporters/otlp/otlpmetric/version.go 100.0% <100.0%> (ø)
exporters/otlp/otlptrace/version.go 100.0% <100.0%> (ø)
sdk/version.go 100.0% <100.0%> (ø)
version.go 100.0% <100.0%> (ø)

... and 1 file with indirect coverage changes

@MrAlias MrAlias merged commit 8e76ab2 into open-telemetry:main Apr 28, 2023
20 of 21 checks passed
@MrAlias MrAlias deleted the release-v1.15.0 branch April 28, 2023 14:48
reenjii added a commit to reenjii/opentelemetry-go-extra that referenced this pull request May 2, 2023
The latest opentelemetry-go release v1.15.0/v0.38.0 introduces a breaking change that breaks otelsql.
We need to use new metric.WithAttributes helper to build an ObserveOption list from a KeyValue list.

> The measurement methods for all instruments in go.opentelemetry.io/otel/metric/instrument accept an option instead of the variadic "go.opentelemetry.io/otel/attribute".KeyValue

Latest opentelemetry-go release: open-telemetry/opentelemetry-go#4035
Breaking change: open-telemetry/opentelemetry-go#3971
reenjii added a commit to reenjii/opentelemetry-go-extra that referenced this pull request May 2, 2023
The latest opentelemetry-go release v1.15.0/v0.38.0 introduces a breaking change.

> The measurement methods for all instruments in go.opentelemetry.io/otel/metric/instrument
> accept an option instead of the variadic "go.opentelemetry.io/otel/attribute".KeyValue

It breaks otelsql: we need to use new metric.WithAttributes helper
to build an ObserveOption list from a KeyValue list.

Latest opentelemetry-go release: open-telemetry/opentelemetry-go#4035
Breaking change: open-telemetry/opentelemetry-go#3971
reenjii added a commit to reenjii/opentelemetry-go-extra that referenced this pull request May 3, 2023
The latest opentelemetry-go release v1.15.0/v0.38.0 introduces a breaking change.

> The measurement methods for all instruments in go.opentelemetry.io/otel/metric/instrument
> accept an option instead of the variadic "go.opentelemetry.io/otel/attribute".KeyValue

It breaks otelsql: we need to use new metric.WithAttributes helper
to build an ObserveOption list from a KeyValue list.

Latest opentelemetry-go release: open-telemetry/opentelemetry-go#4035
Breaking change: open-telemetry/opentelemetry-go#3971
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants