-
Notifications
You must be signed in to change notification settings - Fork 878
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
Implement some of the stable database semantic conventions #11575
Implement some of the stable database semantic conventions #11575
Conversation
.../opentelemetry/javaagent/instrumentation/lettuce/v5_0/LettuceConnectAttributesExtractor.java
Outdated
Show resolved
Hide resolved
...main/java/io/opentelemetry/javaagent/instrumentation/cassandra/v3_0/CassandraSingletons.java
Outdated
Show resolved
Hide resolved
...pentelemetry/instrumentation/api/incubator/semconv/db/DbClientCommonAttributesExtractor.java
Outdated
Show resolved
Hide resolved
.../io/opentelemetry/instrumentation/api/incubator/semconv/db/SqlClientAttributesExtractor.java
Outdated
Show resolved
Hide resolved
...o/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientCommonAttributesGetter.java
Show resolved
Hide resolved
...o/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientCommonAttributesGetter.java
Show resolved
Hide resolved
...a/io/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientAttributesExtractor.java
Outdated
Show resolved
Hide resolved
...a/io/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientAttributesExtractor.java
Outdated
Show resolved
Hide resolved
...ava/io/opentelemetry/instrumentation/api/incubator/semconv/db/SqlClientAttributesGetter.java
Outdated
Show resolved
Hide resolved
...c/main/java/io/opentelemetry/instrumentation/api/incubator/semconv/rpc/RpcMetricsAdvice.java
Outdated
Show resolved
Hide resolved
I will add 'error.type' and the opt-in |
...java/io/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientAttributesGetter.java
Outdated
Show resolved
Hide resolved
...o/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientCommonAttributesGetter.java
Outdated
Show resolved
Hide resolved
...o/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientCommonAttributesGetter.java
Outdated
Show resolved
Hide resolved
...opentelemetry/instrumentation/api/incubator/semconv/db/SqlClientAttributesExtractorTest.java
Outdated
Show resolved
Hide resolved
...opentelemetry/instrumentation/api/incubator/semconv/db/SqlClientAttributesExtractorTest.java
Outdated
Show resolved
Hide resolved
...tation-api/src/main/java/io/opentelemetry/instrumentation/api/internal/SemconvStability.java
Outdated
Show resolved
Hide resolved
...java/io/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientAttributesGetter.java
Outdated
Show resolved
Hide resolved
...java/io/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientAttributesGetter.java
Outdated
Show resolved
Hide resolved
...opentelemetry/instrumentation/api/incubator/semconv/db/SqlClientAttributesExtractorTest.java
Outdated
Show resolved
Hide resolved
...va8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/Classes.java
Outdated
Show resolved
Hide resolved
...java/io/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientAttributesGetter.java
Show resolved
Hide resolved
...java/io/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientAttributesGetter.java
Show resolved
Hide resolved
...pentelemetry/instrumentation/api/incubator/semconv/db/DbClientCommonAttributesExtractor.java
Show resolved
Hide resolved
...o/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientCommonAttributesGetter.java
Show resolved
Hide resolved
...o/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientCommonAttributesGetter.java
Show resolved
Hide resolved
...ava/io/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientSpanNameExtractor.java
Outdated
Show resolved
Hide resolved
...ava/io/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientSpanNameExtractor.java
Outdated
Show resolved
Hide resolved
.../io/opentelemetry/instrumentation/api/incubator/semconv/db/SqlClientAttributesExtractor.java
Outdated
Show resolved
Hide resolved
...ava/io/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientSpanNameExtractor.java
Outdated
Show resolved
Hide resolved
...ava/io/opentelemetry/instrumentation/api/incubator/semconv/db/SqlClientAttributesGetter.java
Show resolved
Hide resolved
...on/src/main/java/io/opentelemetry/instrumentation/testing/junit/db/SemconvStabilityUtil.java
Outdated
Show resolved
Hide resolved
...in/java/io/opentelemetry/javaagent/instrumentation/vertx/v4_0/sql/VertxSqlClientRequest.java
Outdated
Show resolved
Hide resolved
...entelemetry/javaagent/instrumentation/vertx/v4_0/redis/VertxRedisClientAttributesGetter.java
Show resolved
Hide resolved
...ain/java/io/opentelemetry/javaagent/instrumentation/rediscala/RediscalaAttributesGetter.java
Show resolved
Hide resolved
...main/java/io/opentelemetry/instrumentation/r2dbc/v1_0/internal/R2dbcSqlAttributesGetter.java
Show resolved
Hide resolved
.../library/src/main/java/io/opentelemetry/instrumentation/r2dbc/v1_0/internal/DbExecution.java
Outdated
Show resolved
Hide resolved
.../java/io/opentelemetry/javaagent/instrumentation/lettuce/v5_0/LettuceDbAttributesGetter.java
Outdated
Show resolved
Hide resolved
.../java/io/opentelemetry/javaagent/instrumentation/lettuce/v5_0/LettuceDbAttributesGetter.java
Outdated
Show resolved
Hide resolved
...rc/main/java/io/opentelemetry/javaagent/instrumentation/cassandra/v4_0/CassandraRequest.java
Outdated
Show resolved
Hide resolved
.../library/src/main/java/io/opentelemetry/instrumentation/cassandra/v4_4/CassandraRequest.java
Outdated
Show resolved
Hide resolved
...ion/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/internal/DbRequest.java
Outdated
Show resolved
Hide resolved
.../library/src/main/java/io/opentelemetry/instrumentation/r2dbc/v1_0/internal/DbExecution.java
Outdated
Show resolved
Hide resolved
...in/java/io/opentelemetry/javaagent/instrumentation/vertx/v4_0/sql/VertxSqlClientRequest.java
Outdated
Show resolved
Hide resolved
...common/testing/src/main/java/io/opentelemetry/cassandra/v4/common/AbstractCassandraTest.java
Outdated
Show resolved
Hide resolved
...common/testing/src/main/java/io/opentelemetry/cassandra/v4/common/AbstractCassandraTest.java
Outdated
Show resolved
Hide resolved
...src/main/java/io/opentelemetry/instrumentation/cassandra/v4_4/CassandraTelemetryBuilder.java
Outdated
Show resolved
Hide resolved
...4/testing/src/main/java/io/opentelemetry/testing/cassandra/v4_4/AbstractCassandra44Test.java
Outdated
Show resolved
Hide resolved
...avaagent/instrumentation/elasticsearch/transport/ElasticsearchTransportAttributesGetter.java
Outdated
Show resolved
Hide resolved
...main/java/io/opentelemetry/javaagent/instrumentation/jedis/v3_0/JedisDbAttributesGetter.java
Outdated
Show resolved
Hide resolved
...brary/src/main/java/io/opentelemetry/instrumentation/mongo/v3_1/MongoDbAttributesGetter.java
Outdated
Show resolved
Hide resolved
.../opentelemetry/javaagent/instrumentation/opensearch/rest/OpenSearchRestAttributesGetter.java
Outdated
Show resolved
Hide resolved
.../library/src/main/java/io/opentelemetry/instrumentation/r2dbc/v1_0/internal/DbExecution.java
Outdated
Show resolved
Hide resolved
...in/java/io/opentelemetry/javaagent/instrumentation/vertx/v4_0/sql/VertxSqlClientRequest.java
Outdated
Show resolved
Hide resolved
status update, still need to:
|
22f2903
to
038fbec
Compare
...ntelemetry/instrumentation/api/incubator/semconv/db/SqlClientAttributesExtractorBuilder.java
Outdated
Show resolved
Hide resolved
...tation-api/src/main/java/io/opentelemetry/instrumentation/api/internal/SemconvStability.java
Outdated
Show resolved
Hide resolved
.../opentelemetry/javaagent/instrumentation/lettuce/v4_0/LettuceConnectAttributesExtractor.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should merge #12292 before this one (there'll probably be conflicts) so we could use the new attributes. Idk why we stopped updating the semconv artifact.
} | ||
|
||
@SuppressWarnings("unchecked") | ||
public static <T> AttributeKey<T> getAttributeKey(AttributeKey<T> oldKey) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember which way we did this for the http but mapping from new to old might be preferable here as it reduces the need to suppress deprecation warnings when old attributes are used (after we update the semconv jars). For http this might not have been an issue because most of the http tests are in a base class so we needed to suppress the warnings only here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we wouldn't be able to map db.collection.name
since multiple attributes were consolidated into this one attribute
map.put(DB_SQL_TABLE, DB_COLLECTION_NAME);
map.put(DB_CASSANDRA_TABLE, DB_COLLECTION_NAME);
map.put(DB_MONGODB_COLLECTION, DB_COLLECTION_NAME);
map.put(DB_COSMOSDB_CONTAINER, DB_COLLECTION_NAME);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can find ways to resolve the multiple mapping issue. This is just an idea, we can tackle this later if it seems to be worth the effort.
…metry#11575) Co-authored-by: Trask Stalnaker <[email protected]>
…metry#11575) Co-authored-by: Trask Stalnaker <[email protected]>
Protyping parts of open-telemetry/semantic-conventions#1090