Cedric Ziel 8292870b66
Add db.name to ecto spans (#172)
* Add db.name to ecto spans

As per the spec, the db.name attribute is required on database spans. This changes adds it.

Ref: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/database.md#call-level-attributes

* Add db.name attribute to tests

* Changelog update

* Update instrumentation/opentelemetry_ecto/test/opentelemetry_ecto_test.exs

* Update instrumentation/opentelemetry_ecto/test/opentelemetry_ecto_test.exs
2023-05-23 04:49:29 -06:00

527 B

Changelog

1.1.1

Changed

  • Add db.name to ecto spans

1.1.0

Changed

  • Allow setting additional attributes

Fixes

  • Fix span linking in additional task-spawned use cases

1.0.0

Changed

  • Add idle time as an attribute

Fixes

  • Fix Ecto preload spans not being linked to the root parent query

1.0.0-rc.5

Changed

  • Opentelemetry 1.0 support

1.0.0-rc.4

Changed

  • Opentelemetry 1.0.0-rc.4 support

1.0.0-rc.2

Changed

  • Update dependencies to allow telemetry 1.0.0