View Source OpentelemetryMongodbDriver (opentelemetry_mongodb_driver v0.1.0)
OpentelemetryMongodbDriver uses telemetry handlers to
and Mongo a event listener create OpenTelemetry
spans.
Usage
In your application start:
def start(_type, _args) do
OpentelemetryMongodbDriver.setup()
# ...
end
Summary
Functions
Initializes and configures the telemetry handlers.
Types
@type opts() :: {:db_statement, term()}
Setup options
Functions
@spec setup(opts()) :: :ok
Initializes and configures the telemetry handlers.
Options
:db_statement
- Whether or not incllude db statements. Could be any of::disabled
- omit db statements:plain
- include the entire statement without sanitization:obfuscated
- include the entire statement with default obsfuscation
Optionally a function can be provided that takes a
keyword()
representing the command and returns a sanitized version of it as string.The default value is
:disabled
.