Rename apache-pulsar to pulsar and apache-camel to camel (#8195)
Closes #8004
This commit is contained in:
parent
8704510619
commit
b01996e12f
|
@ -1272,7 +1272,7 @@ The `opentelemetry-instrumentation-api` artifact is declared stable in this rele
|
||||||
|
|
||||||
- Renamed Apache Dubbo and Log4j MDC library artifacts
|
- Renamed Apache Dubbo and Log4j MDC library artifacts
|
||||||
([#4779](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/4779))
|
([#4779](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/4779))
|
||||||
- Added http4 handler to apache-camel instrumentation
|
- Added http4 handler to camel instrumentation
|
||||||
([#4650](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/4650))
|
([#4650](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/4650))
|
||||||
- Capture servlet request parameters
|
- Capture servlet request parameters
|
||||||
([#4703](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/4703))
|
([#4703](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/4703))
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
# Settings for the Apache Camel instrumentation
|
|
||||||
|
|
||||||
| System property | Type | Default | Description |
|
|
||||||
|---|---|---|---|
|
|
||||||
| `otel.instrumentation.apache-camel.experimental-span-attributes` | Boolean | `false` | Enable the capture of experimental span attributes. |
|
|
|
@ -1,5 +0,0 @@
|
||||||
# Settings for the Apache Pulsar instrumentation
|
|
||||||
|
|
||||||
| System property | Type | Default | Description |
|
|
||||||
|---|---|---|---|
|
|
||||||
| `otel.instrumentation.apache-pulsar.experimental-span-attributes` | `Boolean | `false` | Enable the capture of experimental span attributes. |
|
|
|
@ -1,7 +0,0 @@
|
||||||
plugins {
|
|
||||||
id("otel.java-conventions")
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
testImplementation(project(":instrumentation:apache-pulsar:apache-pulsar-2.8:javaagent"))
|
|
||||||
}
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
# Settings for the Apache Camel instrumentation
|
||||||
|
|
||||||
|
| System property | Type | Default | Description |
|
||||||
|
|---|---|---|---|
|
||||||
|
| `otel.instrumentation.camel.experimental-span-attributes` | Boolean | `false` | Enable the capture of experimental span attributes. |
|
|
@ -3,7 +3,7 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
testImplementation(project(":instrumentation:apache-camel-2.20:javaagent"))
|
testImplementation(project(":instrumentation:camel-2.20:javaagent"))
|
||||||
testImplementation(project(":instrumentation-api-semconv"))
|
testImplementation(project(":instrumentation-api-semconv"))
|
||||||
testImplementation(project(":javaagent-extension-api"))
|
testImplementation(project(":javaagent-extension-api"))
|
||||||
|
|
|
@ -62,7 +62,7 @@ dependencies {
|
||||||
tasks {
|
tasks {
|
||||||
withType<Test>().configureEach {
|
withType<Test>().configureEach {
|
||||||
// TODO run tests both with and without experimental span attributes
|
// TODO run tests both with and without experimental span attributes
|
||||||
jvmArgs("-Dotel.instrumentation.apache-camel.experimental-span-attributes=true")
|
jvmArgs("-Dotel.instrumentation.camel.experimental-span-attributes=true")
|
||||||
jvmArgs("-Dotel.instrumentation.aws-sdk.experimental-span-attributes=true")
|
jvmArgs("-Dotel.instrumentation.aws-sdk.experimental-span-attributes=true")
|
||||||
|
|
||||||
// TODO: fix camel instrumentation so that it uses semantic attributes extractors
|
// TODO: fix camel instrumentation so that it uses semantic attributes extractors
|
|
@ -16,7 +16,7 @@ import java.util.List;
|
||||||
public class ApacheCamelInstrumentationModule extends InstrumentationModule {
|
public class ApacheCamelInstrumentationModule extends InstrumentationModule {
|
||||||
|
|
||||||
public ApacheCamelInstrumentationModule() {
|
public ApacheCamelInstrumentationModule() {
|
||||||
super("apache-camel", "apache-camel-2.20");
|
super("camel", "camel-2.20");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
|
@ -21,7 +21,7 @@ import org.apache.camel.util.StringHelper;
|
||||||
|
|
||||||
public final class CamelSingletons {
|
public final class CamelSingletons {
|
||||||
|
|
||||||
private static final String INSTRUMENTATION_NAME = "io.opentelemetry.apache-camel-2.20";
|
private static final String INSTRUMENTATION_NAME = "io.opentelemetry.camel-2.20";
|
||||||
|
|
||||||
private static final DecoratorRegistry registry = new DecoratorRegistry();
|
private static final DecoratorRegistry registry = new DecoratorRegistry();
|
||||||
private static final Instrumenter<CamelRequest, Void> INSTRUMENTER;
|
private static final Instrumenter<CamelRequest, Void> INSTRUMENTER;
|
|
@ -42,7 +42,7 @@ class BaseSpanDecorator implements SpanDecorator {
|
||||||
|
|
||||||
static final boolean CAPTURE_EXPERIMENTAL_SPAN_ATTRIBUTES =
|
static final boolean CAPTURE_EXPERIMENTAL_SPAN_ATTRIBUTES =
|
||||||
InstrumentationConfig.get()
|
InstrumentationConfig.get()
|
||||||
.getBoolean("otel.instrumentation.apache-camel.experimental-span-attributes", false);
|
.getBoolean("otel.instrumentation.camel.experimental-span-attributes", false);
|
||||||
|
|
||||||
static final String DEFAULT_OPERATION_NAME = "CamelOperation";
|
static final String DEFAULT_OPERATION_NAME = "CamelOperation";
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ class BaseSpanDecorator implements SpanDecorator {
|
||||||
Endpoint endpoint,
|
Endpoint endpoint,
|
||||||
CamelDirection camelDirection) {
|
CamelDirection camelDirection) {
|
||||||
if (CAPTURE_EXPERIMENTAL_SPAN_ATTRIBUTES) {
|
if (CAPTURE_EXPERIMENTAL_SPAN_ATTRIBUTES) {
|
||||||
attributes.put("apache-camel.uri", URISupport.sanitizeUri(endpoint.getEndpointUri()));
|
attributes.put("camel.uri", URISupport.sanitizeUri(endpoint.getEndpointUri()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,17 +75,17 @@ class KafkaSpanDecorator extends MessagingSpanDecorator {
|
||||||
if (CAPTURE_EXPERIMENTAL_SPAN_ATTRIBUTES) {
|
if (CAPTURE_EXPERIMENTAL_SPAN_ATTRIBUTES) {
|
||||||
String partitionKey = (String) exchange.getIn().getHeader(PARTITION_KEY);
|
String partitionKey = (String) exchange.getIn().getHeader(PARTITION_KEY);
|
||||||
if (partitionKey != null) {
|
if (partitionKey != null) {
|
||||||
attributes.put("apache-camel.kafka.partitionKey", partitionKey);
|
attributes.put("camel.kafka.partitionKey", partitionKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
String key = (String) exchange.getIn().getHeader(KEY);
|
String key = (String) exchange.getIn().getHeader(KEY);
|
||||||
if (key != null) {
|
if (key != null) {
|
||||||
attributes.put("apache-camel.kafka.key", key);
|
attributes.put("camel.kafka.key", key);
|
||||||
}
|
}
|
||||||
|
|
||||||
String offset = getValue(exchange, OFFSET, Long.class);
|
String offset = getValue(exchange, OFFSET, Long.class);
|
||||||
if (offset != null) {
|
if (offset != null) {
|
||||||
attributes.put("apache-camel.kafka.offset", offset);
|
attributes.put("camel.kafka.offset", offset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -48,7 +48,7 @@ class DirectCamelTest extends AgentInstrumentationSpecification {
|
||||||
kind INTERNAL
|
kind INTERNAL
|
||||||
hasNoParent()
|
hasNoParent()
|
||||||
attributes {
|
attributes {
|
||||||
"apache-camel.uri" "direct://input"
|
"camel.uri" "direct://input"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
it.span(1) {
|
it.span(1) {
|
||||||
|
@ -56,7 +56,7 @@ class DirectCamelTest extends AgentInstrumentationSpecification {
|
||||||
kind INTERNAL
|
kind INTERNAL
|
||||||
parentSpanId parent.span(0).spanId
|
parentSpanId parent.span(0).spanId
|
||||||
attributes {
|
attributes {
|
||||||
"apache-camel.uri" "direct://receiver"
|
"camel.uri" "direct://receiver"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -48,7 +48,7 @@ class MulticastDirectCamelTest extends AgentInstrumentationSpecification {
|
||||||
kind INTERNAL
|
kind INTERNAL
|
||||||
hasNoParent()
|
hasNoParent()
|
||||||
attributes {
|
attributes {
|
||||||
"apache-camel.uri" "direct://input"
|
"camel.uri" "direct://input"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// there is no strict ordering of "first" and "second" span
|
// there is no strict ordering of "first" and "second" span
|
||||||
|
@ -59,7 +59,7 @@ class MulticastDirectCamelTest extends AgentInstrumentationSpecification {
|
||||||
kind INTERNAL
|
kind INTERNAL
|
||||||
parentSpanId parent.span(0).spanId
|
parentSpanId parent.span(0).spanId
|
||||||
attributes {
|
attributes {
|
||||||
"apache-camel.uri" "direct://first"
|
"camel.uri" "direct://first"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
it.span(indexOfSecond) {
|
it.span(indexOfSecond) {
|
||||||
|
@ -67,7 +67,7 @@ class MulticastDirectCamelTest extends AgentInstrumentationSpecification {
|
||||||
kind INTERNAL
|
kind INTERNAL
|
||||||
parentSpanId parent.span(0).spanId
|
parentSpanId parent.span(0).spanId
|
||||||
attributes {
|
attributes {
|
||||||
"apache-camel.uri" "direct://second"
|
"camel.uri" "direct://second"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -15,9 +15,7 @@ import org.springframework.boot.SpringApplication
|
||||||
import org.springframework.context.ConfigurableApplicationContext
|
import org.springframework.context.ConfigurableApplicationContext
|
||||||
import spock.lang.Shared
|
import spock.lang.Shared
|
||||||
|
|
||||||
import static io.opentelemetry.api.trace.SpanKind.CLIENT
|
import static io.opentelemetry.api.trace.SpanKind.*
|
||||||
import static io.opentelemetry.api.trace.SpanKind.INTERNAL
|
|
||||||
import static io.opentelemetry.api.trace.SpanKind.SERVER
|
|
||||||
import static io.opentelemetry.semconv.trace.attributes.SemanticAttributes.NetTransportValues.IP_TCP
|
import static io.opentelemetry.semconv.trace.attributes.SemanticAttributes.NetTransportValues.IP_TCP
|
||||||
|
|
||||||
class RestCamelTest extends AgentInstrumentationSpecification implements RetryOnAddressAlreadyInUseTrait {
|
class RestCamelTest extends AgentInstrumentationSpecification implements RetryOnAddressAlreadyInUseTrait {
|
||||||
|
@ -70,7 +68,7 @@ class RestCamelTest extends AgentInstrumentationSpecification implements RetryOn
|
||||||
name "start"
|
name "start"
|
||||||
kind INTERNAL
|
kind INTERNAL
|
||||||
attributes {
|
attributes {
|
||||||
"apache-camel.uri" "direct://start"
|
"camel.uri" "direct://start"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
it.span(1) {
|
it.span(1) {
|
||||||
|
@ -80,7 +78,7 @@ class RestCamelTest extends AgentInstrumentationSpecification implements RetryOn
|
||||||
attributes {
|
attributes {
|
||||||
"$SemanticAttributes.HTTP_METHOD" "GET"
|
"$SemanticAttributes.HTTP_METHOD" "GET"
|
||||||
"$SemanticAttributes.HTTP_STATUS_CODE" 200
|
"$SemanticAttributes.HTTP_STATUS_CODE" 200
|
||||||
"apache-camel.uri" "rest://get:api/%7Bmodule%7D/unit/%7BunitId%7D"
|
"camel.uri" "rest://get:api/%7Bmodule%7D/unit/%7BunitId%7D"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
it.span(2) {
|
it.span(2) {
|
||||||
|
@ -110,7 +108,7 @@ class RestCamelTest extends AgentInstrumentationSpecification implements RetryOn
|
||||||
attributes {
|
attributes {
|
||||||
"$SemanticAttributes.HTTP_METHOD" "GET"
|
"$SemanticAttributes.HTTP_METHOD" "GET"
|
||||||
"$SemanticAttributes.HTTP_URL" "http://localhost:$port/api/firstModule/unit/unitOne"
|
"$SemanticAttributes.HTTP_URL" "http://localhost:$port/api/firstModule/unit/unitOne"
|
||||||
"apache-camel.uri" String
|
"camel.uri" String
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
it.span(4) {
|
it.span(4) {
|
||||||
|
@ -118,7 +116,7 @@ class RestCamelTest extends AgentInstrumentationSpecification implements RetryOn
|
||||||
kind INTERNAL
|
kind INTERNAL
|
||||||
parentSpanId(span(3).spanId)
|
parentSpanId(span(3).spanId)
|
||||||
attributes {
|
attributes {
|
||||||
"apache-camel.uri" "direct://moduleUnit"
|
"camel.uri" "direct://moduleUnit"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -65,7 +65,7 @@ class SingleServiceCamelTest extends AgentInstrumentationSpecification implement
|
||||||
attributes {
|
attributes {
|
||||||
"$SemanticAttributes.HTTP_METHOD" "POST"
|
"$SemanticAttributes.HTTP_METHOD" "POST"
|
||||||
"$SemanticAttributes.HTTP_URL" "${address.resolve("/camelService")}"
|
"$SemanticAttributes.HTTP_URL" "${address.resolve("/camelService")}"
|
||||||
"apache-camel.uri" "${address.resolve("/camelService")}".replace("localhost", "0.0.0.0")
|
"camel.uri" "${address.resolve("/camelService")}".replace("localhost", "0.0.0.0")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -17,9 +17,7 @@ import org.springframework.boot.SpringApplication
|
||||||
import org.springframework.context.ConfigurableApplicationContext
|
import org.springframework.context.ConfigurableApplicationContext
|
||||||
import spock.lang.Shared
|
import spock.lang.Shared
|
||||||
|
|
||||||
import static io.opentelemetry.api.trace.SpanKind.CLIENT
|
import static io.opentelemetry.api.trace.SpanKind.*
|
||||||
import static io.opentelemetry.api.trace.SpanKind.INTERNAL
|
|
||||||
import static io.opentelemetry.api.trace.SpanKind.SERVER
|
|
||||||
import static io.opentelemetry.semconv.trace.attributes.SemanticAttributes.NetTransportValues.IP_TCP
|
import static io.opentelemetry.semconv.trace.attributes.SemanticAttributes.NetTransportValues.IP_TCP
|
||||||
|
|
||||||
class TwoServicesWithDirectClientCamelTest extends AgentInstrumentationSpecification implements RetryOnAddressAlreadyInUseTrait {
|
class TwoServicesWithDirectClientCamelTest extends AgentInstrumentationSpecification implements RetryOnAddressAlreadyInUseTrait {
|
||||||
|
@ -52,9 +50,9 @@ class TwoServicesWithDirectClientCamelTest extends AgentInstrumentationSpecifica
|
||||||
clientContext.addRoutes(new RouteBuilder() {
|
clientContext.addRoutes(new RouteBuilder() {
|
||||||
void configure() {
|
void configure() {
|
||||||
from("direct:input")
|
from("direct:input")
|
||||||
.log("SENT Client request")
|
.log("SENT Client request")
|
||||||
.to("http://localhost:$portOne/serviceOne")
|
.to("http://localhost:$portOne/serviceOne")
|
||||||
.log("RECEIVED Client response")
|
.log("RECEIVED Client response")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
clientContext.start()
|
clientContext.start()
|
||||||
|
@ -82,7 +80,7 @@ class TwoServicesWithDirectClientCamelTest extends AgentInstrumentationSpecifica
|
||||||
name "input"
|
name "input"
|
||||||
kind INTERNAL
|
kind INTERNAL
|
||||||
attributes {
|
attributes {
|
||||||
"apache-camel.uri" "direct://input"
|
"camel.uri" "direct://input"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
it.span(1) {
|
it.span(1) {
|
||||||
|
@ -93,7 +91,7 @@ class TwoServicesWithDirectClientCamelTest extends AgentInstrumentationSpecifica
|
||||||
"$SemanticAttributes.HTTP_METHOD" "POST"
|
"$SemanticAttributes.HTTP_METHOD" "POST"
|
||||||
"$SemanticAttributes.HTTP_URL" "http://localhost:$portOne/serviceOne"
|
"$SemanticAttributes.HTTP_URL" "http://localhost:$portOne/serviceOne"
|
||||||
"$SemanticAttributes.HTTP_STATUS_CODE" 200
|
"$SemanticAttributes.HTTP_STATUS_CODE" 200
|
||||||
"apache-camel.uri" "http://localhost:$portOne/serviceOne"
|
"camel.uri" "http://localhost:$portOne/serviceOne"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
it.span(2) {
|
it.span(2) {
|
||||||
|
@ -104,7 +102,7 @@ class TwoServicesWithDirectClientCamelTest extends AgentInstrumentationSpecifica
|
||||||
"$SemanticAttributes.HTTP_METHOD" "POST"
|
"$SemanticAttributes.HTTP_METHOD" "POST"
|
||||||
"$SemanticAttributes.HTTP_URL" "http://localhost:$portOne/serviceOne"
|
"$SemanticAttributes.HTTP_URL" "http://localhost:$portOne/serviceOne"
|
||||||
"$SemanticAttributes.HTTP_STATUS_CODE" 200
|
"$SemanticAttributes.HTTP_STATUS_CODE" 200
|
||||||
"apache-camel.uri" "http://0.0.0.0:$portOne/serviceOne"
|
"camel.uri" "http://0.0.0.0:$portOne/serviceOne"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
it.span(3) {
|
it.span(3) {
|
||||||
|
@ -115,7 +113,7 @@ class TwoServicesWithDirectClientCamelTest extends AgentInstrumentationSpecifica
|
||||||
"$SemanticAttributes.HTTP_METHOD" "POST"
|
"$SemanticAttributes.HTTP_METHOD" "POST"
|
||||||
"$SemanticAttributes.HTTP_URL" "http://127.0.0.1:$portTwo/serviceTwo"
|
"$SemanticAttributes.HTTP_URL" "http://127.0.0.1:$portTwo/serviceTwo"
|
||||||
"$SemanticAttributes.HTTP_STATUS_CODE" 200
|
"$SemanticAttributes.HTTP_STATUS_CODE" 200
|
||||||
"apache-camel.uri" "http://127.0.0.1:$portTwo/serviceTwo"
|
"camel.uri" "http://127.0.0.1:$portTwo/serviceTwo"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
it.span(4) {
|
it.span(4) {
|
||||||
|
@ -145,7 +143,7 @@ class TwoServicesWithDirectClientCamelTest extends AgentInstrumentationSpecifica
|
||||||
attributes {
|
attributes {
|
||||||
"$SemanticAttributes.HTTP_METHOD" "POST"
|
"$SemanticAttributes.HTTP_METHOD" "POST"
|
||||||
"$SemanticAttributes.HTTP_URL" "http://127.0.0.1:$portTwo/serviceTwo"
|
"$SemanticAttributes.HTTP_URL" "http://127.0.0.1:$portTwo/serviceTwo"
|
||||||
"apache-camel.uri" "jetty:http://0.0.0.0:$portTwo/serviceTwo?arg=value"
|
"camel.uri" "jetty:http://0.0.0.0:$portTwo/serviceTwo?arg=value"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -18,7 +18,7 @@ class CamelSpan {
|
||||||
kind INTERNAL
|
kind INTERNAL
|
||||||
hasNoParent()
|
hasNoParent()
|
||||||
attributes {
|
attributes {
|
||||||
"apache-camel.uri" "direct://${spanName}"
|
"camel.uri" "direct://${spanName}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ class CamelSpan {
|
||||||
childOf parentSpan
|
childOf parentSpan
|
||||||
}
|
}
|
||||||
attributes {
|
attributes {
|
||||||
"apache-camel.uri" "aws-sqs://${queueName}?amazonSQSClient=%23sqsClient&delay=1000"
|
"camel.uri" "aws-sqs://${queueName}?amazonSQSClient=%23sqsClient&delay=1000"
|
||||||
"$SemanticAttributes.MESSAGING_DESTINATION_NAME" queueName
|
"$SemanticAttributes.MESSAGING_DESTINATION_NAME" queueName
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ class CamelSpan {
|
||||||
childOf parentSpan
|
childOf parentSpan
|
||||||
}
|
}
|
||||||
attributes {
|
attributes {
|
||||||
"apache-camel.uri" "aws-sqs://${queueName}?amazonSQSClient=%23sqsClient&delay=1000"
|
"camel.uri" "aws-sqs://${queueName}?amazonSQSClient=%23sqsClient&delay=1000"
|
||||||
"$SemanticAttributes.MESSAGING_DESTINATION_NAME" queueName
|
"$SemanticAttributes.MESSAGING_DESTINATION_NAME" queueName
|
||||||
"$SemanticAttributes.MESSAGING_MESSAGE_ID" String
|
"$SemanticAttributes.MESSAGING_MESSAGE_ID" String
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,7 @@ class CamelSpan {
|
||||||
kind INTERNAL
|
kind INTERNAL
|
||||||
childOf parentSpan
|
childOf parentSpan
|
||||||
attributes {
|
attributes {
|
||||||
"apache-camel.uri" "aws-sns://${topicName}?amazonSNSClient=%23snsClient"
|
"camel.uri" "aws-sns://${topicName}?amazonSNSClient=%23snsClient"
|
||||||
"$SemanticAttributes.MESSAGING_DESTINATION_NAME" topicName
|
"$SemanticAttributes.MESSAGING_DESTINATION_NAME" topicName
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,7 @@ class CamelSpan {
|
||||||
kind INTERNAL
|
kind INTERNAL
|
||||||
childOf parentSpan
|
childOf parentSpan
|
||||||
attributes {
|
attributes {
|
||||||
"apache-camel.uri" "aws-s3://${bucketName}?amazonS3Client=%23s3Client"
|
"camel.uri" "aws-s3://${bucketName}?amazonS3Client=%23s3Client"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -94,13 +94,13 @@ class CassandraTest extends AgentInstrumentationSpecification implements RetryOn
|
||||||
kind INTERNAL
|
kind INTERNAL
|
||||||
hasNoParent()
|
hasNoParent()
|
||||||
attributes {
|
attributes {
|
||||||
"apache-camel.uri" "direct://input"
|
"camel.uri" "direct://input"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
span(1) {
|
span(1) {
|
||||||
kind CLIENT
|
kind CLIENT
|
||||||
attributes {
|
attributes {
|
||||||
"apache-camel.uri" "cql://$host:$port/test"
|
"camel.uri" "cql://$host:$port/test"
|
||||||
"$SemanticAttributes.DB_NAME" "test"
|
"$SemanticAttributes.DB_NAME" "test"
|
||||||
"$SemanticAttributes.DB_STATEMENT" "select * from test.users where id=? ALLOW FILTERING"
|
"$SemanticAttributes.DB_STATEMENT" "select * from test.users where id=? ALLOW FILTERING"
|
||||||
"$SemanticAttributes.DB_SYSTEM" "cassandra"
|
"$SemanticAttributes.DB_SYSTEM" "cassandra"
|
|
@ -0,0 +1,5 @@
|
||||||
|
# Settings for the Apache Pulsar instrumentation
|
||||||
|
|
||||||
|
| System property | Type | Default | Description |
|
||||||
|
|---|---|---|---|
|
||||||
|
| `otel.instrumentation.pulsar.experimental-span-attributes` | `Boolean | `false` | Enable the capture of experimental span attributes. |
|
|
@ -0,0 +1,7 @@
|
||||||
|
plugins {
|
||||||
|
id("otel.java-conventions")
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
testImplementation(project(":instrumentation:pulsar:pulsar-2.8:javaagent"))
|
||||||
|
}
|
|
@ -21,6 +21,6 @@ dependencies {
|
||||||
|
|
||||||
tasks.withType<Test>().configureEach {
|
tasks.withType<Test>().configureEach {
|
||||||
// TODO run tests both with and without experimental span attributes
|
// TODO run tests both with and without experimental span attributes
|
||||||
jvmArgs("-Dotel.instrumentation.apache-pulsar.experimental-span-attributes=true")
|
jvmArgs("-Dotel.instrumentation.pulsar.experimental-span-attributes=true")
|
||||||
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
|
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
|
||||||
}
|
}
|
|
@ -14,7 +14,7 @@ import java.util.List;
|
||||||
@AutoService(InstrumentationModule.class)
|
@AutoService(InstrumentationModule.class)
|
||||||
public class PulsarInstrumentationModule extends InstrumentationModule {
|
public class PulsarInstrumentationModule extends InstrumentationModule {
|
||||||
public PulsarInstrumentationModule() {
|
public PulsarInstrumentationModule() {
|
||||||
super("apache-pulsar", "apache-pulsar-2.8.0");
|
super("pulsar", "pulsar-2.8.0");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
|
@ -29,7 +29,7 @@ import org.apache.pulsar.client.api.Consumer;
|
||||||
import org.apache.pulsar.client.api.Message;
|
import org.apache.pulsar.client.api.Message;
|
||||||
|
|
||||||
public final class PulsarSingletons {
|
public final class PulsarSingletons {
|
||||||
private static final String INSTRUMENTATION_NAME = "io.opentelemetry.apache-pulsar-2.8";
|
private static final String INSTRUMENTATION_NAME = "io.opentelemetry.pulsar-2.8";
|
||||||
|
|
||||||
private static final OpenTelemetry TELEMETRY = GlobalOpenTelemetry.get();
|
private static final OpenTelemetry TELEMETRY = GlobalOpenTelemetry.get();
|
||||||
private static final TextMapPropagator PROPAGATOR =
|
private static final TextMapPropagator PROPAGATOR =
|
||||||
|
@ -96,7 +96,7 @@ public final class PulsarSingletons {
|
||||||
NetClientAttributesExtractor.create(new PulsarNetClientAttributesGetter()));
|
NetClientAttributesExtractor.create(new PulsarNetClientAttributesGetter()));
|
||||||
|
|
||||||
if (InstrumentationConfig.get()
|
if (InstrumentationConfig.get()
|
||||||
.getBoolean("otel.instrumentation.apache-pulsar.experimental-span-attributes", false)) {
|
.getBoolean("otel.instrumentation.pulsar.experimental-span-attributes", false)) {
|
||||||
builder.addAttributesExtractor(ExperimentalProducerAttributesExtractor.INSTANCE);
|
builder.addAttributesExtractor(ExperimentalProducerAttributesExtractor.INSTANCE);
|
||||||
}
|
}
|
||||||
|
|
|
@ -134,8 +134,6 @@ hideFromDependabot(":smoke-tests:images:spring-boot")
|
||||||
hideFromDependabot("instrumentation:akka:akka-actor-2.3:javaagent")
|
hideFromDependabot("instrumentation:akka:akka-actor-2.3:javaagent")
|
||||||
hideFromDependabot(":instrumentation:akka:akka-actor-fork-join-2.5:javaagent")
|
hideFromDependabot(":instrumentation:akka:akka-actor-fork-join-2.5:javaagent")
|
||||||
hideFromDependabot(":instrumentation:akka:akka-http-10.0:javaagent")
|
hideFromDependabot(":instrumentation:akka:akka-http-10.0:javaagent")
|
||||||
hideFromDependabot(":instrumentation:apache-camel-2.20:javaagent")
|
|
||||||
hideFromDependabot(":instrumentation:apache-camel-2.20:javaagent-unit-tests")
|
|
||||||
hideFromDependabot(":instrumentation:apache-dbcp-2.0:javaagent")
|
hideFromDependabot(":instrumentation:apache-dbcp-2.0:javaagent")
|
||||||
hideFromDependabot(":instrumentation:apache-dbcp-2.0:library")
|
hideFromDependabot(":instrumentation:apache-dbcp-2.0:library")
|
||||||
hideFromDependabot(":instrumentation:apache-dbcp-2.0:testing")
|
hideFromDependabot(":instrumentation:apache-dbcp-2.0:testing")
|
||||||
|
@ -148,8 +146,6 @@ hideFromDependabot(":instrumentation:apache-httpclient:apache-httpclient-4.0:jav
|
||||||
hideFromDependabot(":instrumentation:apache-httpclient:apache-httpclient-4.3:library")
|
hideFromDependabot(":instrumentation:apache-httpclient:apache-httpclient-4.3:library")
|
||||||
hideFromDependabot(":instrumentation:apache-httpclient:apache-httpclient-4.3:testing")
|
hideFromDependabot(":instrumentation:apache-httpclient:apache-httpclient-4.3:testing")
|
||||||
hideFromDependabot(":instrumentation:apache-httpclient:apache-httpclient-5.0:javaagent")
|
hideFromDependabot(":instrumentation:apache-httpclient:apache-httpclient-5.0:javaagent")
|
||||||
hideFromDependabot(":instrumentation:apache-pulsar:apache-pulsar-2.8:javaagent")
|
|
||||||
hideFromDependabot(":instrumentation:apache-pulsar:apache-pulsar-2.8:javaagent-unit-tests")
|
|
||||||
hideFromDependabot(":instrumentation:armeria-1.3:javaagent")
|
hideFromDependabot(":instrumentation:armeria-1.3:javaagent")
|
||||||
hideFromDependabot(":instrumentation:armeria-1.3:library")
|
hideFromDependabot(":instrumentation:armeria-1.3:library")
|
||||||
hideFromDependabot(":instrumentation:armeria-1.3:testing")
|
hideFromDependabot(":instrumentation:armeria-1.3:testing")
|
||||||
|
@ -175,6 +171,8 @@ hideFromDependabot(":instrumentation:azure-core:azure-core-1.19:javaagent")
|
||||||
hideFromDependabot(":instrumentation:azure-core:azure-core-1.19:library-instrumentation-shaded")
|
hideFromDependabot(":instrumentation:azure-core:azure-core-1.19:library-instrumentation-shaded")
|
||||||
hideFromDependabot(":instrumentation:azure-core:azure-core-1.36:javaagent")
|
hideFromDependabot(":instrumentation:azure-core:azure-core-1.36:javaagent")
|
||||||
hideFromDependabot(":instrumentation:azure-core:azure-core-1.36:library-instrumentation-shaded")
|
hideFromDependabot(":instrumentation:azure-core:azure-core-1.36:library-instrumentation-shaded")
|
||||||
|
hideFromDependabot(":instrumentation:camel-2.20:javaagent")
|
||||||
|
hideFromDependabot(":instrumentation:camel-2.20:javaagent-unit-tests")
|
||||||
hideFromDependabot(":instrumentation:cassandra:cassandra-3.0:javaagent")
|
hideFromDependabot(":instrumentation:cassandra:cassandra-3.0:javaagent")
|
||||||
hideFromDependabot(":instrumentation:cassandra:cassandra-4.0:javaagent")
|
hideFromDependabot(":instrumentation:cassandra:cassandra-4.0:javaagent")
|
||||||
hideFromDependabot(":instrumentation:cassandra:cassandra-4.4:javaagent")
|
hideFromDependabot(":instrumentation:cassandra:cassandra-4.4:javaagent")
|
||||||
|
@ -398,6 +396,8 @@ hideFromDependabot(":instrumentation:play:play-ws:play-ws-2.0:javaagent")
|
||||||
hideFromDependabot(":instrumentation:play:play-ws:play-ws-2.1:javaagent")
|
hideFromDependabot(":instrumentation:play:play-ws:play-ws-2.1:javaagent")
|
||||||
hideFromDependabot(":instrumentation:play:play-ws:play-ws-common:javaagent")
|
hideFromDependabot(":instrumentation:play:play-ws:play-ws-common:javaagent")
|
||||||
hideFromDependabot(":instrumentation:play:play-ws:play-ws-common:testing")
|
hideFromDependabot(":instrumentation:play:play-ws:play-ws-common:testing")
|
||||||
|
hideFromDependabot(":instrumentation:pulsar:pulsar-2.8:javaagent")
|
||||||
|
hideFromDependabot(":instrumentation:pulsar:pulsar-2.8:javaagent-unit-tests")
|
||||||
hideFromDependabot(":instrumentation:quartz-2.0:javaagent")
|
hideFromDependabot(":instrumentation:quartz-2.0:javaagent")
|
||||||
hideFromDependabot(":instrumentation:quartz-2.0:library")
|
hideFromDependabot(":instrumentation:quartz-2.0:library")
|
||||||
hideFromDependabot(":instrumentation:quartz-2.0:testing")
|
hideFromDependabot(":instrumentation:quartz-2.0:testing")
|
||||||
|
|
Loading…
Reference in New Issue