Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
mxiamxia authored Oct 8, 2024
2 parents 5cd249b + 445031b commit ee43a86
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stage 1: Install ADOT nodejs instrumentation in the /operator-build folder
FROM node:20 AS build
FROM public.ecr.aws/docker/library/node:20 AS build

# Build the ADOT JS SDK Tarball: aws-aws-distro-opentelemetry-node-autoinstrumentation-x.y.z.tgz
WORKDIR /adot-js-build
Expand All @@ -18,7 +18,7 @@ RUN npm install aws-aws-distro-opentelemetry-node-autoinstrumentation-$(node -p
RUN npm install

# Stage 2: Build the cp-utility binary
FROM rust:1.75 as builder
FROM public.ecr.aws/docker/library/rust:1.75 as builder

WORKDIR /usr/src/cp-utility
COPY ./tools/cp-utility .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,10 @@ export class AwsOpentelemetryConfigurator {
// Register BatchUnsampledSpanProcessor to export unsampled traces in Lambda
// when Application Signals enabled
if (isLambdaEnvironment() && !hasCustomOtlpTraceEndpoint()) {
const udpSpanExporter = new OTLPUdpSpanExporter(getXrayDaemonEndpoint(), FORMAT_OTEL_UNSAMPLED_TRACES_BINARY_PREFIX);
const udpSpanExporter = new OTLPUdpSpanExporter(
getXrayDaemonEndpoint(),
FORMAT_OTEL_UNSAMPLED_TRACES_BINARY_PREFIX
);
const configuredExporter = AwsMetricAttributesSpanExporterBuilder.create(udpSpanExporter, resource).build();
spanProcessors.push(
new AwsBatchUnsampledSpanProcessor(configuredExporter, {
Expand Down
3 changes: 1 addition & 2 deletions contract-tests/images/applications/aws-sdk/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Use an official Node.js runtime as the base image
FROM node:20-alpine
#FROM node:20
FROM public.ecr.aws/docker/library/node:20-alpine

# Set the working directory inside the container
WORKDIR /aws-sdk
Expand Down
3 changes: 1 addition & 2 deletions contract-tests/images/applications/http/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Use an official Node.js runtime as the base image
FROM node:20-alpine
#FROM node:20
FROM public.ecr.aws/docker/library/node:20-alpine

# Set the working directory inside the container
WORKDIR /http
Expand Down
2 changes: 1 addition & 1 deletion contract-tests/images/applications/mongodb/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use an official Node.js runtime as the base image
FROM node:20-alpine
FROM public.ecr.aws/docker/library/node:20-alpine

# Set the working directory inside the container
WORKDIR /mongodb
Expand Down
2 changes: 1 addition & 1 deletion contract-tests/images/applications/mongoose/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use an official Node.js runtime as the base image
FROM node:20-alpine
FROM public.ecr.aws/docker/library/node:20-alpine
#FROM node:20

# Set the working directory inside the container
Expand Down
2 changes: 1 addition & 1 deletion contract-tests/images/applications/mysql2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use an official Node.js runtime as the base image
FROM node:20-alpine
FROM public.ecr.aws/docker/library/node:20-alpine

# Set the working directory inside the container
WORKDIR /mysql2
Expand Down

0 comments on commit ee43a86

Please sign in to comment.