Skip to content

chore: update otel readme, plugin constructor#490

Open
wangyb-A wants to merge 1 commit into
mainfrom
otel_readme
Open

chore: update otel readme, plugin constructor#490
wangyb-A wants to merge 1 commit into
mainfrom
otel_readme

Conversation

@wangyb-A

@wangyb-A wangyb-A commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:

  • Add readme for otel plugin
  • Update otel plugin provider parameter as optional

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@wangyb-A wangyb-A marked this pull request as ready for review June 24, 2026 23:20
Comment on lines +180 to +181
# Ratio used by TraceIdRatioBased sampling (default: 1.0).
sampling_rate=1.0,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the ADOT layer already has this configuration, do we really need this configuration in the plugin?

The layer ARN follows the format:

```
arn:aws:lambda:<region>:901920570463:layer:aws-otel-python-<arch>-ver-<version>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I also made put the awsAccountId between <> since the accountId changes between regions for the layer.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: repeats below in all references of the layer.


- `otel_trace_id`: 32-char hex trace identifier
- `otel_span_id`: 16-char hex span identifier
- `otel_trace_sampled`: boolean indicating if the trace is sampled

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the customer specifies th sampling ratio on the layer's env variable, will this be accurate?



@durable_execution(plugins=[otel])
@durable_execution(plugins=[DurableExecutionOtelPlugin()])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: we've renamed the plugin in other SDKs to OtelPlugin. You an follow up in another PR if you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants