Skip to content

Releases: open-telemetry/opentelemetry-swift

1.1.2

14 Jan 09:25
0b39168
Compare
Choose a tag to compare

General

  • OpenTelemetryContextProvider now works correctly for activeSpan and activeBaggage when using Concurrency framework and async/await code. Limited to using XCode 13.2 and up, any version lower than that can fail when using new Concurrency features.

Datadog Exporter

  • Add us5 to list of possible endpoints

1.1.1

30 Nov 10:32
cadbcbf
Compare
Choose a tag to compare

General

  • Improve SemanticConvention generation template #277

Traces

  • Make SpanData conform to Codable to support persisting #279
  • Fix startTime for spans, it was always using the SpanBuilder creation time as the start time #282

Metrics

  • Make Metric conform to Codable to support persisting #279

Resources

  • Added extra parameters to resource attributes, as per the updated spec #276
  • Fixed bug where enum values were not public, and thus could not be used by clients #276

New Persistence Exporter

  • The Persistence Exporter is not an actual exporter by itself, but an exporter decorator. It decorates a given exporter by persisting the exported data to the disk first, and then proceeds to forward it to the decorated exporter. More information and examples in the included README. #280

1.1.0

05 Nov 09:15
3f9d9d7
Compare
Choose a tag to compare

Package

  • Removed duplicated lib products, use non lib prefixed ones. Since 1.0.3 they have been exactly equal. #271 (Breaking)

General

  • Provide a way to register the different propagators other than W3C. #261
  • Add a Zipkin baggage propagator #264
  • Update SemanticAttributes and ResourceAttributes to version 1.7.0 #272 (Breaking)

Traces

  • Removed textFormat member from TracerSdk, users of this propagators must use the global registered ones instead: OpenTelemetry.instance.propagators.textMapPropagator #261 (Breaking)
  • SimpleSpanProcessor now exports the spans asynchronously, and synchronises only on shutdown or flush. For production environments BatchSpanProcessor is still preferred. #263
  • Implement ForceFlush spec on Span processors adding a timeout parameter. #273

Resources

  • Fix environment variable for specifying resource attribute as it was not following the spec. Changed to OTEL_RESOURCE_ATTRIBUTES from OTEL_RESOURCE_ATTRIBUTES_ENV #255 (Breaking)
  • EnvironmentContextPropagator now uses TRACEPARENT and TRACESTATE instead of OTEL_TRACE_PARENT and OTEL_TRACE_STATE for compatibility with other tools #255 (Breaking)

URLSession Instrumentation

  • Avoid potential interlocking in network instrumentation #263
  • Fix concurrent network requests could fail to correctly create spans #270

Zipkin Exporter

  • Display correct serviceName for Zipkin #259, #262

1.0.7

20 Oct 07:20
c7eb143
Compare
Choose a tag to compare

Package

  • Fix: Support for Xcode 11 (it was broken in last version) #253

Metrics

  • Add histogram support to Prometheus exporter #254

Datadog Exporter

  • Add support to setting the resource.name as a separate tag #252

1.0.6

13 Oct 11:12
eec1f8f
Compare
Choose a tag to compare

Package

  • Fix: Xcode 13.0 building for macOS #247
  • Update swift-atomics minimum version to 1.0.0 #240
  • Remove experimental name from targets based on Metrics

General

  • Fix: Resources were not properly updated from environment variables #242

Metrics

  • New: Add support for Histogram metrics. Currently only OTLP exporter is supported. #244

Traces

  • Added a method to SpanBuilder to start span directly as active. #245

Datadog Exporter

  • Allow disabling payload compression

1.0.5 (beta)

20 Sep 11:45
fdc77fd
Compare
Choose a tag to compare

Package

  • Remove some third party dependencies that are now included with the library code #236

General

  • Add support for Swift async/await and structured concurrency #230
  • Fix support for macCatalyst target environment that was broken from two last releases #226

Zipkin exporter

  • Fix Zipkin exporter's treatment of status to follow the spec #232

Datadog Exporter

  • Updated to intake v2, it support both apiKey and clientToken for traces and logs #227

URLSessionInstrumentation

  • Fix creating duplicated spans with iOS < 13 #231
  • Delegate calls were not being properly called when running in iOS < 13 #231
  • Payload was not being recorded with some code paths #231
  • URLRequest are not modified if tracing headers are not injected #231
  • Fix a thread race condition #235

OpenTelemetryProtocol (OTLP) Sample

  • New sample code that uses the OTLP Exporter to send traces and metrics to otel-collector which is configured to export traces to zipkin and metrics to prometheus respectively. #228

1.0.4 (beta)

16 Aug 16:15
90bcf2e
Compare
Choose a tag to compare

URLSessionInstrumentation

  • Fix appleTV linking when using URLSession instrumentation.

1.0.3 (beta)

13 Aug 15:28
13ecada
Compare
Choose a tag to compare

Package

  • All package products are changed to be distributed in .static format, having the dynamic version distributed by default has been confusing for users. lib... named packages will be deleted in the future.

General

  • Add a willExportCallback to BatchSpanProcessor, it will be called just before export action. Allows modifying spans (e.g. saving export timestamp in an attribute) or deleting them before exporting #207
  • Fix MetricProcessorSDK was not cleaning already collected metrics, so were being reported repeatedly #206
  • Deprecate UngroupedBatcher metric processor, it works like MetricProcessorSDK but is not concurrently safe #206
  • Added TracerProviderBuilder and MeterProviderBuilder #213

OpenTelemetryProtocol (OTLP) Exporter

  • Add aggregationTemporality to OTEL metrics exporter #203
  • Created OtlpConfiguration for OTLP exporters, allowing configuring headers and timeouts. Supports OTEL_EXPORTER_OTLP_HEADERS #213

URLSessionInstrumentation

  • Adds new NetworkStatus instrumentation to iOS network calls #217
  • Changed configuration callback shouldInjectTracingHeaders to not accept modifying the URLRequest, because the callback is called more than once in some situations. Use newly created injectCustomHeaders callback for modification of the request or headers.

NetworkStatus

  • New instrumentation only for iOS, it captures cellular or network status #217

SignPost Integration

  • Add support also for iOS and tvOS #216

Prometheus Sample

  • Improve documentation on local configuration for Prometheus server #211

1.0.2 (beta)

11 Jun 11:24
7cabfc1
Compare
Choose a tag to compare

Metrics

  • Added type Gauge to the types of supported meters #192
  • Fixed time was not being set to Sum data points #192
  • Fixed a retention loop between MetricProviderSdk and PushMetricController #199

Datadog Exporter

  • Add support to US3 Datadog endpoint #197

1.0.1 (beta)

31 May 12:55
3a731ed
Compare
Choose a tag to compare

Swift package

  • Fixed warnings when including in another project #182
  • Allow usage with swift-tools-version 5.2 #189

General

  • Merging logic for Resources was wrong, new values should prevail #187
  • Replace copyright header with a much shorter version #188
  • Add badge for build and test to the README file #193

OpenTelemetryProtocol (OTLP) Exporter

  • Remove the OTLP receiver legacy gRPC port(55680) references #190

Jaeger Exporter

  • Fix Jaeger exporter, was broken since 0.5.0 #194

Zipkin Exporter

  • Fixed a typo in Zipkin Exporter initializer #180

Datadog Exporter

  • Fixed attibutes export format in Logs #181

SignPost Integration

  • First release, it automatically produces os_signpost begin and end calls when spans are started or ended. #185