Skip to content

Commit 890bd3d

Browse files
authored
Merge branch 'main' into vherremi/revertaction
2 parents ffc7b10 + aabd5b2 commit 890bd3d

File tree

8 files changed

+380
-64
lines changed

8 files changed

+380
-64
lines changed

.github/workflows/release-lambda.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,10 @@ jobs:
209209
- name: download layer.zip
210210
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 #v5.0.0
211211
with:
212-
name: layer.zip
212+
name: aws-opentelemetry-java-layer.zip
213+
- name: rename to layer.zip
214+
run: |
215+
mv aws-opentelemetry-java-layer.zip layer.zip
213216
- name: Get commit hash
214217
id: commit
215218
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,8 @@ For any change that affects end users of this package, please add an entry under
1212
If your change does not need a CHANGELOG entry, add the "skip changelog" label to your PR.
1313

1414
## Unreleased
15+
16+
### Enhancements
17+
18+
- Support X-Ray Trace Id extraction from Lambda Context object, and respect user-configured OTEL_PROPAGATORS in AWS Lamdba instrumentation
19+
([#1191](https://github.com/aws-observability/aws-otel-java-instrumentation/pull/1191))

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# permissions and limitations under the License.
1414

1515
# Stage 1: Build the cp-utility binary
16-
FROM public.ecr.aws/docker/library/rust:1.89 as builder
16+
FROM public.ecr.aws/docker/library/rust:1.89 AS builder
1717

1818
WORKDIR /usr/src/cp-utility
1919
COPY ./tools/cp-utility .

appsignals-tests/contract-tests/src/test/java/software/amazon/opentelemetry/appsignals/test/base/JMXMetricsContractTestBase.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ protected void assertMetrics() {
6060
protected long getThreshold(String metricName) {
6161
long threshold = 0;
6262
switch (metricName) {
63-
// If maximum memory size is undefined, then value is -1
64-
// https://docs.oracle.com/en/java/javase/17/docs/api/java.management/java/lang/management/MemoryUsage.html#getMax()
65-
// Thread count can be negative when excutor is null
66-
// https://github.com/apache/tomcat/blob/1afe41491f0e56ec0a776db5ff84607f87ce6640/java/org/apache/tomcat/util/net/AbstractEndpoint.java#L1204
63+
// If maximum memory size is undefined, then value is -1
64+
// https://docs.oracle.com/en/java/javase/17/docs/api/java.management/java/lang/management/MemoryUsage.html#getMax()
65+
// Thread count can be negative when excutor is null
66+
// https://github.com/apache/tomcat/blob/1afe41491f0e56ec0a776db5ff84607f87ce6640/java/org/apache/tomcat/util/net/AbstractEndpoint.java#L1204
6767
case JMXMetricsConstants.TOMCAT_THREADS:
6868
threshold = -2;
6969
break;

awsagentprovider/src/main/java/software/amazon/opentelemetry/javaagent/providers/AwsMetricAttributeGenerator.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -455,17 +455,17 @@ private static String normalizeRemoteServiceName(SpanData span, String serviceNa
455455
case "AmazonSQS": // AWS SDK v1
456456
case "Sqs": // AWS SDK v2
457457
return NORMALIZED_SQS_SERVICE_NAME;
458-
// For Bedrock, Bedrock Agent, and Bedrock Agent Runtime, we can align with AWS Cloud
459-
// Control and use AWS::Bedrock for RemoteService.
458+
// For Bedrock, Bedrock Agent, and Bedrock Agent Runtime, we can align with AWS Cloud
459+
// Control and use AWS::Bedrock for RemoteService.
460460
case "AmazonBedrock": // AWS SDK v1
461461
case "Bedrock": // AWS SDK v2
462462
case "AWSBedrockAgentRuntime": // AWS SDK v1
463463
case "BedrockAgentRuntime": // AWS SDK v2
464464
case "AWSBedrockAgent": // AWS SDK v1
465465
case "BedrockAgent": // AWS SDK v2
466466
return NORMALIZED_BEDROCK_SERVICE_NAME;
467-
// For BedrockRuntime, we are using AWS::BedrockRuntime as the associated remote resource
468-
// (Model) is not listed in Cloud Control.
467+
// For BedrockRuntime, we are using AWS::BedrockRuntime as the associated remote resource
468+
// (Model) is not listed in Cloud Control.
469469
case "AmazonBedrockRuntime": // AWS SDK v1
470470
case "BedrockRuntime": // AWS SDK v2
471471
return NORMALIZED_BEDROCK_RUNTIME_SERVICE_NAME;

lambda-layer/otel-instrument

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
export OTEL_INSTRUMENTATION_AWS_SDK_EXPERIMENTAL_SPAN_ATTRIBUTES=true
44

5-
export OTEL_PROPAGATORS="${OTEL_PROPAGATORS:-baggage,xray,tracecontext}"
5+
export OTEL_PROPAGATORS="${OTEL_PROPAGATORS:-baggage,tracecontext,xray}"
66

77
export OTEL_SERVICE_NAME=${OTEL_SERVICE_NAME:-${AWS_LAMBDA_FUNCTION_NAME}}
88

lambda-layer/patches/opentelemetry-java-instrumentation.patch

Lines changed: 360 additions & 52 deletions
Large diffs are not rendered by default.

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
pluginManagement {
1717
plugins {
18-
id("com.diffplug.spotless") version "6.25.0"
18+
id("com.diffplug.spotless") version "7.0.3"
1919
id("com.github.ben-manes.versions") version "0.50.0"
2020
id("com.github.jk1.dependency-license-report") version "2.5"
2121
id("com.gradleup.shadow") version "8.3.5"

0 commit comments

Comments
 (0)