Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tammy-baylis-swi committed Mar 20, 2024
1 parent 3871219 commit 31c65ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ def custom_event_context_extractor(lambda_event):
TRACE_HEADER_KEY,
AwsXRayPropagator,
)
from opentelemetry.semconv.resource import ResourceAttributes
from opentelemetry.semconv.trace import SpanAttributes
from opentelemetry.trace import (
Span,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@
)

from opentelemetry.environment_variables import OTEL_PROPAGATORS
from opentelemetry.instrumentation._semconv import (
_OTEL_SEMCONV_STABILITY_OPT_IN_KEY,
_OpenTelemetrySemanticConventionStability,
)
from opentelemetry.instrumentation.aws_lambda import (
_HANDLER,
_X_AMZN_TRACE_ID,
OTEL_INSTRUMENTATION_AWS_LAMBDA_FLUSH_TIMEOUT,
OTEL_LAMBDA_DISABLE_AWS_CONTEXT_PROPAGATION,
AwsLambdaInstrumentor,
)
from opentelemetry.instrumentation._semconv import (
_OTEL_SEMCONV_STABILITY_OPT_IN_KEY,
_OpenTelemetrySemanticConventionStability,
)
from opentelemetry.propagate import get_global_textmap
from opentelemetry.propagators.aws.aws_xray_propagator import (
TRACE_ID_FIRST_PART_LENGTH,
Expand Down Expand Up @@ -172,7 +172,7 @@ def test_active_tracing_semconv_opt_in(self):
# Using Active tracing
_X_AMZN_TRACE_ID: MOCK_XRAY_TRACE_CONTEXT_SAMPLED,
# Opt into new semconv
_OTEL_SEMCONV_STABILITY_OPT_IN_KEY: "faas"
_OTEL_SEMCONV_STABILITY_OPT_IN_KEY: "faas",
},
)
test_env_patch.start()
Expand Down Expand Up @@ -205,7 +205,7 @@ def test_active_tracing_semconv_opt_in_dup(self):
# Using Active tracing
_X_AMZN_TRACE_ID: MOCK_XRAY_TRACE_CONTEXT_SAMPLED,
# Opt into new semconv
_OTEL_SEMCONV_STABILITY_OPT_IN_KEY: "faas/dup"
_OTEL_SEMCONV_STABILITY_OPT_IN_KEY: "faas/dup",
},
)
test_env_patch.start()
Expand Down

0 comments on commit 31c65ca

Please sign in to comment.