diff --git a/aws-opentelemetry-distro/src/amazon/opentelemetry/distro/aws_opentelemetry_configurator.py b/aws-opentelemetry-distro/src/amazon/opentelemetry/distro/aws_opentelemetry_configurator.py index c62dc4dbc..d87fc3af6 100644 --- a/aws-opentelemetry-distro/src/amazon/opentelemetry/distro/aws_opentelemetry_configurator.py +++ b/aws-opentelemetry-distro/src/amazon/opentelemetry/distro/aws_opentelemetry_configurator.py @@ -90,22 +90,7 @@ def _initialize_components(auto_instrumentation_version): # populate version if using auto-instrumentation if auto_instrumentation_version: auto_resource[ResourceAttributes.TELEMETRY_AUTO_VERSION] = auto_instrumentation_version - default_resource = Resource.create(auto_resource) - - print("HERE----------default_resource: !!!!!!!!!---------------------") - print(default_resource.to_json) - - print("Integrating AwsEksResourceDetector--------------------") - - resource=get_aggregated_resources( - [ - # AwsEc2ResourceDetector(), - AwsEksResourceDetector(), - ] - ).merge(default_resource) - - print("HERE----------resource: !!!!!!!!!---------------------") - print(resource.to_json) + resource = Resource.create(auto_resource) _init_tracing( exporters=trace_exporters, diff --git a/sample-applications/vehicle-dealership-sample-app/eks/backend-deployment.yaml b/sample-applications/vehicle-dealership-sample-app/eks/backend-deployment.yaml index bae30df43..dca4185f1 100644 --- a/sample-applications/vehicle-dealership-sample-app/eks/backend-deployment.yaml +++ b/sample-applications/vehicle-dealership-sample-app/eks/backend-deployment.yaml @@ -59,8 +59,6 @@ spec: value: "http://cloudwatch-agent.amazon-cloudwatch:4315" - name: OTEL_METRICS_EXPORTER value: "none" - - name: OTEL_TRACES_EXPORTER - value: "console" - name: OTEL_TRACES_SAMPLER value: "always_on" - name: OTEL_PROPAGATORS diff --git a/sample-applications/vehicle-dealership-sample-app/eks/image-backend-deployment.yaml b/sample-applications/vehicle-dealership-sample-app/eks/image-backend-deployment.yaml index 4da8add4f..0f4deecd0 100644 --- a/sample-applications/vehicle-dealership-sample-app/eks/image-backend-deployment.yaml +++ b/sample-applications/vehicle-dealership-sample-app/eks/image-backend-deployment.yaml @@ -59,8 +59,6 @@ spec: value: "true" - name: OTEL_METRICS_EXPORTER value: "none" - - name: OTEL_TRACES_EXPORTER - value: "console" - name: OTEL_TRACES_SAMPLER value: "always_on" - name: OTEL_PROPAGATORS