Skip to content

Commit beaadc8

Browse files
SilanHehsilan
andauthored
chore: fast follow up on nits from monorepo pr (#402)
Co-authored-by: hsilan <hsilan@amazon.com>
1 parent 0e30701 commit beaadc8

4 files changed

Lines changed: 10 additions & 16 deletions

File tree

.github/scripts/ci-checks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/usr/bin/env bash
22

33
set -e
44

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dist/
3131

3232
.kiro/
3333

34-
*/build/*
35-
*/*.zip
34+
**/build/
35+
**/*.zip
3636

3737
.env

packages/aws-durable-execution-sdk-python-otel/README.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
OpenTelemetry instrumentation for the [AWS Durable Execution SDK for Python](https://github.com/aws/aws-durable-execution-sdk-python).
44

5+
> **Note:** v0.1.0 reserves the package name. Instrumentation lands in v0.2.0.
6+
57
## Overview
68

7-
This package provides automatic OpenTelemetry tracing for durable execution workflows, giving you visibility into step execution, waits, retries, and overall workflow performance.
9+
This package will provide automatic OpenTelemetry tracing for durable execution workflows, giving you visibility into step execution, waits, retries, and overall workflow performance.
810

911
## Installation
1012

@@ -15,20 +17,12 @@ pip install aws-durable-execution-sdk-python-otel
1517
## Quick Start
1618

1719
```python
18-
from aws_durable_execution_sdk_python import DurableContext, durable_execution
19-
from aws_durable_execution_sdk_python_otel import instrument_durable_execution
20-
21-
# Instrument the SDK (call once at module load)
22-
instrument_durable_execution()
20+
from aws_durable_execution_sdk_python_otel import __version__
2321

24-
@durable_execution
25-
def handler(event: dict, context: DurableContext) -> dict:
26-
# Steps, waits, and invokes are automatically traced
27-
result = context.step(lambda _: do_work(), name="my-step")
28-
return {"result": result}
22+
print(__version__)
2923
```
3024

31-
## Features
25+
## Planned Features (v0.2.0)
3226

3327
- Automatic span creation for steps, waits, invokes, and child contexts
3428
- Replay-aware tracing (distinguishes fresh executions from replays)

packages/aws-durable-execution-sdk-python/tests/operation/map_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1162,9 +1162,9 @@ def create_id(self, i):
11621162
parent_call = mock_serialize.call_args_list[2]
11631163
assert parent_call[1]["serdes"] is custom_serdes
11641164
assert isinstance(parent_call[1]["value"], BatchResult)
1165+
assert parent_call[1]["value"] is result
11651166
finally:
11661167
importlib.reload(child)
1167-
assert parent_call[1]["value"] is result
11681168

11691169

11701170
def test_map_with_empty_list_should_exit_early():

0 commit comments

Comments
 (0)