Repository navigation
3.0.0
Pre-release
Pre-release
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
- feat(resource): emit app.installation.id alongside device.id by @benjoseph-grafana in #1263
New Instrumentations
- feat: add kscrash reporter by @williazz in #1003
- feat: add mincore launch instrumentation by @williazz in #1275
OTelSwiftTracing Bridge
- fix(tracing): support active span lookup in Swift tracing bridge by @NikitaKurpas in #1219
** fix(OTelSwiftTracing): remove span attributes set to nil by @benjoseph-grafana in #1286 - feat(OTelSwiftTracing): expose span context for reading by @aranhave in #1302
OTelSwiftLog Bridge
- fix: use the global logger provider by default by @huong8373tt-beep in #1252
- fix: let per-call log metadata override handler metadata by @fukalous in #1240
- feat(logs): support Logger.MetadataProvider in OTelLogHandler by @patelsid1211 in #1262
Persistence
Examples
- fix(examples): adopt the UIScene life cycle in HackerNewsDemo by @MariusCiocanel in #1230
- feat(examples): add grafana view for local collector by @williazz in #1238
Testing
- test(integ): add ios integ test against sample app by @williazz in #1198
- ci: run all tests on push to main by @williazz in #1227
- ci: test Swift 6.2 and 6.3 alongside 6.4 by @aranhave in #1266
New Contributors
- @abhijithpp made their first contribution in #1213
- @AmerAtiah made their first contribution in #1192
- @MariusCiocanel made their first contribution in #1230
- @NikitaKurpas made their first contribution in #1219
- @huong8373tt-beep made their first contribution in #1252
- @Batxent made their first contribution in #1249
- @fukalous made their first contribution in #1240
- @patelsid1211 made their first contribution in #1262
- @WatchTree-19 made their first contribution in #1287
- @austinwright made their first contribution in #1297
- @ffittschen made their first contribution in #1276
- @linktimo made their first contribution in #1242
- @NayanBhut made their first contribution in #1307
- @adityamukesh made their first contribution in #1320
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.