erleans / pgo

Erlang Postgres client and connection pool
Apache License 2.0
80 stars 16 forks source link

OpenTelemetry replaces OpenCensus for tracing #62

Closed tsloughter closed 2 years ago

tsloughter commented 2 years ago

If the OpenTelemetry SDK is started then tracing is now enabled by default.

Span operations are no-op's in opentelemetry_api if no SDK (the opentelemetry package) is started this doesn't change anything for anyone not using OpenTelemetry.

include_statement_span_attribute option is added for enabling/disabling the inclusion of the whole query as an attribute on the OpenTelemetry Span started for a query.

codecov[bot] commented 2 years ago

Codecov Report

Merging #62 (3ff4d06) into main (67f3055) will increase coverage by 2.24%. The diff coverage is 86.66%.

@@            Coverage Diff             @@
##             main      #62      +/-   ##
==========================================
+ Coverage   63.92%   66.16%   +2.24%     
==========================================
  Files          14       14              
  Lines        1009     1002       -7     
==========================================
+ Hits          645      663      +18     
+ Misses        364      339      -25     
Impacted Files Coverage Δ
src/pgo.erl 76.36% <85.18%> (+33.99%) :arrow_up:
src/pgo_handler.erl 68.65% <100.00%> (+0.80%) :arrow_up:
src/pgo_pool.erl 60.11% <0.00%> (ø)
src/pgo_protocol.erl 56.37% <0.00%> (+0.41%) :arrow_up:

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more