Skip to content

Commit

Permalink
Move io.opentelemetry:opentelemetry-extension-aws to contrib (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-berg committed Oct 19, 2022
1 parent 23bdc66 commit d277cfc
Show file tree
Hide file tree
Showing 11 changed files with 868 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/component_owners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ components:
- willarmiros
aws-xray:
- willarmiros
aws-xray-propagator:
- willarmiros
consistent-sampling:
- oertl
- PeterF778
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ feature or via instrumentation, this project is hopefully for you.

## Provided Libraries

* [AWS X-Ray Support](./aws-xray/README.md)
* [AWS Resources](./aws-resources/README.md)
* [AWS X-Ray SDK Support](./aws-xray/README.md)
* [AWS X-Ray Propagator](./aws-xray-propagator/README.md)
* [Consistent sampling](./consistent-sampling/README.md)
* [JFR Streaming](./jfr-streaming/README.md)
* [JMX Metric Gatherer](./jmx-metrics/README.md)
Expand Down
10 changes: 10 additions & 0 deletions aws-xray-propagator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# OpenTelemetry AWS X-Ray Propagator

This module contains a `TextMapPropagator` implementation compatible with
the [AWS X-Ray Trace Header propagation protocol](https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-tracingheader).

## Component owners

- [William Armiros](https://github.com/willarmiros), AWS

Learn more about component owners in [component_owners.yml](../.github/component_owners.yml).
12 changes: 12 additions & 0 deletions aws-xray-propagator/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
plugins {
id("otel.java-conventions")

id("otel.publish-conventions")
}

description = "OpenTelemetry AWS X-Ray Propagator"

dependencies {
api("io.opentelemetry:opentelemetry-api")
compileOnly("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi")
}
2 changes: 2 additions & 0 deletions aws-xray-propagator/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# TODO: uncomment when ready to mark as stable
# otel.stable=true
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/

package io.opentelemetry.contrib.awsxray.propagator;

import io.opentelemetry.context.propagation.TextMapPropagator;
import io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties;
import io.opentelemetry.sdk.autoconfigure.spi.ConfigurablePropagatorProvider;

/**
* A {@link ConfigurablePropagatorProvider} which allows enabling the {@link AwsXrayPropagator} with
* the propagator name {@code xray}.
*/
public final class AwsConfigurablePropagator implements ConfigurablePropagatorProvider {
@Override
public TextMapPropagator getPropagator(ConfigProperties config) {
return AwsXrayPropagator.getInstance();
}

@Override
public String getName() {
return "xray";
}
}
Loading

0 comments on commit d277cfc

Please sign in to comment.