apple / swift-distributed-tracing

Instrumentation library for Swift server applications
https://swiftpackageindex.com/apple/swift-distributed-tracing/main/documentation/tracing
Apache License 2.0
224 stars 34 forks source link

Recording an error may carry attributes #90

Closed ktoso closed 1 year ago

ktoso commented 1 year ago

Motivation: It can be used to attach more information bout the error, like its stacktrace and similar information.

This is also supported by the otel spec, so we're aligning closer with it here.

Modifications:

Change the recordError to accept optional span attributes

Result:

more powerful record error API

resolves https://github.com/apple/swift-distributed-tracing/issues/45