Skip to content

3.0.0

Pre-release
Pre-release

Choose a tag to compare

@nachoBonafonte nachoBonafonte released this 27 Nov 07:22

What's Changed

General

  • Deprecated opentelemetry-swift-core repo, OpenTelemetryAPI and OpenTelemetrySDK are now back in the main repo. by @nachoBonafonte in #1220
  • The project is now using package traits, all integrations that need a third-party package are now behind a package trait. Please see updated README for details and migration instructions by @ffittschen in #1276
  • Updated semantic conventions, some old attributes have been renamed and/or removed. by @MariusCiocanel in #1291

Traces

  • fix(trace): preserve the context of dropped spans by @aranhave in #1222
  • fix: report exception types instead of error codes by @NikitaKurpas in #1221
  • fix: safely parse W3C versions and preserve tracestate by @Batxent in #1249
  • fix(sdk): keep Ok final and ignore Unset when setting span status by @WatchTree-19 in #1287

Metrics

  • Fix metrics with same label but different dimensions being merged by @linktimo in #1242
  • feat(api): add setUnit and setDescription to metric instrument builders by @adityamukesh in #1318

Sessions Instrumentation

  • feat(sessions): persist cross-signal sampling decisions by @aranhave in #1185
  • feat(sessions): apply saved sampling decisions to signal integrations by @aranhave in #1218

URLSession Instrumentation

  • fix(URLSession): use method-only span names for stable semconv by @abhijithpp in #1213
  • Add HTTP error-only response payload recording by @AmerAtiah in #1192
  • fix(URLSession): end the span for tasks nothing else reports by @tomerhy in #1167
  • docs(URLSession): document the initialization cost and how to avoid it by @tomerhy in #1172
  • feat(URLSession): give receivedResponse the request it belongs to by @tomerhy in #1168
  • fix(URLSession): record error.type for stable HTTP error responses by @NayanBhut in #1307
  • test(URLSession): lock shared test state to fix ThreadSanitizer races by @adityamukesh in #1320
  • fix(URLSessionInstrumentation): read class list with objc_copyClassList by @austinwright in #1297
  • fix(URLSession): instrument tasks resumed outside Swift concurrency by @tomerhy in #1293
  • fix(URLSession): drop request state once a completion handler reports the task by @tomerhy in #1295
  • feat(URLSession): allow opting out of instrumenting session delegates on resume by @tomerhy in #1300
  • fix(URLSession): default server.port to scheme port when URL has none by @tomerhy in #1314
  • fix(URLSession): record payload for delegates without didReceive data by @tomerhy in #1316

Network Status

  • fix(NetworkStatus): map unknown NWPath.Status to unavailable instead of crashing by @tomerhy in #1292
  • fix(NetworkStatus): stop emitting deprecated CTCarrier placeholder attributes on iOS 16+ by @tomerhy in #1299
  • fix(NetworkStatus): refresh the cached radio technology when it changes by @tomerhy in #1312

SDKResourceExtension

New Instrumentations

OTelSwiftTracing Bridge

OTelSwiftLog Bridge

Persistence

Examples

Testing

New Contributors

Full Changelog: 2.6.0...3.0.0

Special thanks to (alphabetical order): @aranhave, @benjoseph-grafana, @kukushechkin, @MariusCiocanel, @williazz and many others who have been actively reviewing PRs and contributing in the SIG meetings for this version to come out.