OptionalenabledWhether to enable the plugin.
OptionalheartbeatWhether to enable mongo heartbeats spans.
OptionalmeasuredWhether to measure the span. Can also be set to a key-value pair with span names as keys and booleans as values for more granular control.
OptionalobfuscateHow to mask primitive query values in the mongodb.query tag and the
resource name (when queryInResourceName is also enabled). Keys,
operator names, and array / pipeline shape are preserved so the masked
query is still a usable query signature.
'types': replace each primitive leaf with its typeof name
('string', 'number', 'boolean', 'bigint', 'object',
'null'). Keeps the same redaction guarantee as 'redact' but
preserves the value types so the rendered query can still be used
to design indexes.'redact': replace each primitive leaf with '?'. Strictest masking.'none': do not mask. Values land verbatim on the span.OptionalqueryWhether to include the query contents in the resource name.
OptionalserviceThe service name to be used for this plugin.
This plugin automatically instruments the mongodb-core module.