Skip to content

Commit b46d22a

Browse files
author
ADOT Patch workflow
committed
Debug log line
1 parent c746087 commit b46d22a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

aws-opentelemetry-distro/src/amazon/opentelemetry/distro/aws_opentelemetry_configurator.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,13 @@ def _initialize_components(auto_instrumentation_version):
102102
try:
103103
resource = get_aggregated_resources(
104104
[
105-
# AwsEc2ResourceDetector(),
105+
AwsEc2ResourceDetector(),
106106
# AwsEksResourceDetector(),
107107
# AwsEcsResourceDetector(),
108108
]
109109
).merge(Resource.create(auto_resource))
110-
except:
110+
except Exception as e:
111+
print(e)
111112
print("An error occur when creating resource, can ignore this when deal with contract-tests")
112113
resource: Resource = Resource.create(auto_resource)
113114
print("before_sampler")

0 commit comments

Comments
 (0)