fix the operation name
This commit is contained in:
parent
f20ed93741
commit
e830e1b7e6
|
@ -50,9 +50,11 @@ public class MongoHelper extends DDAgentTracingHelper<MongoClientOptions.Builder
|
||||||
try {
|
try {
|
||||||
final BsonDocument normalized = new BsonDocument();
|
final BsonDocument normalized = new BsonDocument();
|
||||||
norm(event.getCommand(), normalized);
|
norm(event.getCommand(), normalized);
|
||||||
span.setTag(DDTags.RESOURCE_NAME, normalized.toJson());
|
span.setTag(DDTags.RESOURCE_NAME, normalized.toString());
|
||||||
|
span.setOperationName("mongo.cmd");
|
||||||
|
|
||||||
} catch (final Throwable e) {
|
} catch (final Throwable e) {
|
||||||
log.warn("Couldn't the mongo query: " + e.getMessage(), e);
|
log.warn("Couldn't decorate the mongo query: " + e.getMessage(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,5 +8,5 @@ decorators:
|
||||||
- type: HTTPComponent
|
- type: HTTPComponent
|
||||||
matchingValue: java-aws-sdk
|
matchingValue: java-aws-sdk
|
||||||
setValue: aws-client
|
setValue: aws-client
|
||||||
- type: DBStatementAsResourceName
|
# - type: DBStatementAsResourceName
|
||||||
- type: ErrorFlag
|
- type: ErrorFlag
|
||||||
|
|
Loading…
Reference in New Issue