Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in OperationCollectionSpanNameProvider, when Command value is an Integer #24

Open
peterfouquet0001 opened this issue Nov 23, 2021 · 0 comments

Comments

@peterfouquet0001
Copy link

I got many execptions from the TracingCommandListener, if the value for the command is not a String.
This happens for example by a ping command.

{"date": "2021-11-23 15:12:48,981", "vertical": "opal", "service": "product", "level": "WARN", "logger": "org.mongodb.driver.protocol.event", , "message": "Exception thrown raising command started event to listener io.opentracing.contrib.mongo.common.TracingCommandListener@3770dd80", "thread": "task-scheduler-2"}
org.bson.BsonInvalidOperationException: Value expected to be of type STRING is of unexpected type INT32
at org.bson.BsonValue.throwIfInvalidType(BsonValue.java:419)
at org.bson.BsonValue.asString(BsonValue.java:69)
at org.bson.BsonDocument.getString(BsonDocument.java:235)
at io.opentracing.contrib.mongo.common.providers.OperationCollectionSpanNameProvider.generateName(OperationCollectionSpanNameProvider.java:27)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant