agentic-observability-aws 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- agentic_observability_aws-0.1.0/.gitignore +27 -0
- agentic_observability_aws-0.1.0/PKG-INFO +73 -0
- agentic_observability_aws-0.1.0/README.md +24 -0
- agentic_observability_aws-0.1.0/hatch_build.py +33 -0
- agentic_observability_aws-0.1.0/pyproject.toml +80 -0
- agentic_observability_aws-0.1.0/specifications/attribute-mappings/otel-genai@0.1.0.yaml +96 -0
- agentic_observability_aws-0.1.0/specifications/semantic-conventions/README.md +22 -0
- agentic_observability_aws-0.1.0/specifications/semantic-conventions/target.yaml +12 -0
- agentic_observability_aws-0.1.0/specifications/telemetry-schemas/README.md +9 -0
- agentic_observability_aws-0.1.0/specifications/telemetry-schemas/attribute-mapping.schema.json +441 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/__init__.py +42 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/cli/__init__.py +5 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/cli/collector.py +40 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/cli/doctor.py +51 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/cli/main.py +41 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/cli/telemetry.py +352 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/core/__init__.py +4 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/core/findings.py +54 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/core/model.py +168 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/core/otlp_json.py +347 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/core/sdk_bridge.py +201 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/core/specs.py +50 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/diagnostics/__init__.py +4 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/diagnostics/doctor.py +342 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/exporters/__init__.py +4 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/exporters/reconciling.py +62 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/integrations/__init__.py +4 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/integrations/agentcore/__init__.py +4 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/integrations/bedrock/__init__.py +5 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/integrations/collector/__init__.py +1 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/integrations/collector/ottl.py +136 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/integrations/omni/__init__.py +4 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/integrations/strands/__init__.py +4 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/observability/__init__.py +4 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/observability/behavior/__init__.py +4 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/observability/metrics/__init__.py +4 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/observability/profiling/__init__.py +4 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/observability/topology/__init__.py +4 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/processors/__init__.py +4 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/processors/enricher/__init__.py +3 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/processors/enricher/session.py +32 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/processors/normalizer/__init__.py +4 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/processors/normalizer/engine.py +287 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/processors/normalizer/mapping.py +175 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/processors/pipeline.py +77 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/processors/redactor/__init__.py +4 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/processors/redactor/detectors.py +96 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/processors/redactor/redactor.py +219 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/processors/sampler/__init__.py +4 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/processors/validator/__init__.py +5 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/processors/validator/content.py +120 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/processors/validator/cross_span.py +242 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/processors/validator/omni.py +155 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/processors/validator/runner.py +39 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/processors/validator/weaver.py +272 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/py.typed +0 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/reliability/__init__.py +4 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/reliability/failure/__init__.py +4 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/reliability/resilience/__init__.py +4 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/reliability/slo/__init__.py +4 -0
- agentic_observability_aws-0.1.0/src/agentic_observability_aws/sdk.py +107 -0
- agentic_observability_aws-0.1.0/tests/conftest.py +44 -0
- agentic_observability_aws-0.1.0/tests/test_cli.py +140 -0
- agentic_observability_aws-0.1.0/tests/test_doctor.py +151 -0
- agentic_observability_aws-0.1.0/tests/test_engine.py +197 -0
- agentic_observability_aws-0.1.0/tests/test_fixture_contracts.py +164 -0
- agentic_observability_aws-0.1.0/tests/test_mapping.py +83 -0
- agentic_observability_aws-0.1.0/tests/test_otlp_json.py +113 -0
- agentic_observability_aws-0.1.0/tests/test_ottl.py +128 -0
- agentic_observability_aws-0.1.0/tests/test_package.py +14 -0
- agentic_observability_aws-0.1.0/tests/test_quickstart.py +56 -0
- agentic_observability_aws-0.1.0/tests/test_redactor.py +150 -0
- agentic_observability_aws-0.1.0/tests/test_sdk.py +225 -0
- agentic_observability_aws-0.1.0/tests/test_validator.py +182 -0
- agentic_observability_aws-0.1.0/tests/test_weaver.py +146 -0
- agentic_observability_aws-0.1.0/uv.lock +3720 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
.venv/
|
|
5
|
+
.pytest_cache/
|
|
6
|
+
.mypy_cache/
|
|
7
|
+
.ruff_cache/
|
|
8
|
+
dist/
|
|
9
|
+
build/
|
|
10
|
+
*.egg-info/
|
|
11
|
+
.coverage
|
|
12
|
+
htmlcov/
|
|
13
|
+
# Node
|
|
14
|
+
node_modules/
|
|
15
|
+
packages/typescript/dist/
|
|
16
|
+
coverage/
|
|
17
|
+
# Local
|
|
18
|
+
.env
|
|
19
|
+
.env.*
|
|
20
|
+
.DS_Store
|
|
21
|
+
.idea/
|
|
22
|
+
.vscode/
|
|
23
|
+
# Never commit captured real telemetry
|
|
24
|
+
tests/fixtures/**/*.raw.json
|
|
25
|
+
|
|
26
|
+
# Original project specification (kept locally, not versioned)
|
|
27
|
+
/AWS_AI_Observability_Roadmap.md
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: agentic-observability-aws
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: AWS-first, OpenTelemetry-native telemetry reconciliation, validation and reliability toolkit for agentic AI.
|
|
5
|
+
Project-URL: Homepage, https://github.com/aws-ai-observability/dev-tools
|
|
6
|
+
Project-URL: Repository, https://github.com/aws-ai-observability/dev-tools
|
|
7
|
+
Project-URL: Issues, https://github.com/aws-ai-observability/dev-tools/issues
|
|
8
|
+
Project-URL: Changelog, https://github.com/aws-ai-observability/dev-tools/blob/main/CHANGELOG.md
|
|
9
|
+
Author: agentic-observability-aws contributors
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Topic :: System :: Monitoring
|
|
15
|
+
Classifier: Typing :: Typed
|
|
16
|
+
Requires-Python: >=3.10
|
|
17
|
+
Requires-Dist: opentelemetry-api>=1.30
|
|
18
|
+
Requires-Dist: opentelemetry-sdk>=1.30
|
|
19
|
+
Requires-Dist: pydantic>=2.7
|
|
20
|
+
Requires-Dist: pyyaml>=6.0
|
|
21
|
+
Requires-Dist: typer>=0.12
|
|
22
|
+
Provides-Extra: agentcore
|
|
23
|
+
Requires-Dist: aws-opentelemetry-distro; extra == 'agentcore'
|
|
24
|
+
Provides-Extra: all
|
|
25
|
+
Requires-Dist: aws-opentelemetry-distro; extra == 'all'
|
|
26
|
+
Requires-Dist: boto3>=1.35; extra == 'all'
|
|
27
|
+
Requires-Dist: openinference-instrumentation-strands-agents; extra == 'all'
|
|
28
|
+
Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.30; extra == 'all'
|
|
29
|
+
Requires-Dist: opentelemetry-instrumentation-botocore>=0.66b2; extra == 'all'
|
|
30
|
+
Requires-Dist: strands-agents>=1.68.0; extra == 'all'
|
|
31
|
+
Provides-Extra: bedrock
|
|
32
|
+
Requires-Dist: boto3>=1.35; extra == 'bedrock'
|
|
33
|
+
Requires-Dist: opentelemetry-instrumentation-botocore>=0.66b2; extra == 'bedrock'
|
|
34
|
+
Provides-Extra: conformance
|
|
35
|
+
Requires-Dist: opentelemetry-exporter-otlp-proto-grpc>=1.30; extra == 'conformance'
|
|
36
|
+
Provides-Extra: dev
|
|
37
|
+
Requires-Dist: mypy>=1.11; extra == 'dev'
|
|
38
|
+
Requires-Dist: pytest-cov>=5; extra == 'dev'
|
|
39
|
+
Requires-Dist: pytest>=8; extra == 'dev'
|
|
40
|
+
Requires-Dist: ruff>=0.6; extra == 'dev'
|
|
41
|
+
Requires-Dist: types-pyyaml; extra == 'dev'
|
|
42
|
+
Provides-Extra: openinference
|
|
43
|
+
Requires-Dist: openinference-instrumentation-strands-agents; extra == 'openinference'
|
|
44
|
+
Provides-Extra: otlp
|
|
45
|
+
Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.30; extra == 'otlp'
|
|
46
|
+
Provides-Extra: strands
|
|
47
|
+
Requires-Dist: strands-agents>=1.68.0; extra == 'strands'
|
|
48
|
+
Description-Content-Type: text/markdown
|
|
49
|
+
|
|
50
|
+
# agentic-observability-aws
|
|
51
|
+
|
|
52
|
+
AWS-first, OpenTelemetry-native toolkit for agentic AI telemetry built on Amazon Bedrock, Amazon
|
|
53
|
+
Bedrock AgentCore and the Strands Agents SDK, viewed in Amazon CloudWatch / CloudWatch Omni or any
|
|
54
|
+
OTLP backend.
|
|
55
|
+
|
|
56
|
+
It reconciles Strands and Bedrock spans to OpenTelemetry semantic-conventions-genai v0.1.0, validates
|
|
57
|
+
telemetry across spans, redacts sensitive content before export, and adds agent reliability signals.
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
pip install agentic-observability-aws
|
|
61
|
+
agentic-observability-aws telemetry validate traces.json --profile omni
|
|
62
|
+
agentic-observability-aws telemetry normalize traces.json -o normalized.json
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
```python
|
|
66
|
+
import agentic_observability_aws as aoa
|
|
67
|
+
|
|
68
|
+
aoa.configure() # after ADOT / Strands telemetry setup: reconcile, enrich session.id, redact
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Extras: `[conformance]` for OTel Weaver live-check replay (`telemetry validate --conformance`).
|
|
72
|
+
Documentation: [quickstart](https://github.com/aws-ai-observability/dev-tools/blob/main/docs/quickstart.md).
|
|
73
|
+
License: MIT.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# agentic-observability-aws
|
|
2
|
+
|
|
3
|
+
AWS-first, OpenTelemetry-native toolkit for agentic AI telemetry built on Amazon Bedrock, Amazon
|
|
4
|
+
Bedrock AgentCore and the Strands Agents SDK, viewed in Amazon CloudWatch / CloudWatch Omni or any
|
|
5
|
+
OTLP backend.
|
|
6
|
+
|
|
7
|
+
It reconciles Strands and Bedrock spans to OpenTelemetry semantic-conventions-genai v0.1.0, validates
|
|
8
|
+
telemetry across spans, redacts sensitive content before export, and adds agent reliability signals.
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
pip install agentic-observability-aws
|
|
12
|
+
agentic-observability-aws telemetry validate traces.json --profile omni
|
|
13
|
+
agentic-observability-aws telemetry normalize traces.json -o normalized.json
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
```python
|
|
17
|
+
import agentic_observability_aws as aoa
|
|
18
|
+
|
|
19
|
+
aoa.configure() # after ADOT / Strands telemetry setup: reconcile, enrich session.id, redact
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Extras: `[conformance]` for OTel Weaver live-check replay (`telemetry validate --conformance`).
|
|
23
|
+
Documentation: [quickstart](https://github.com/aws-ai-observability/dev-tools/blob/main/docs/quickstart.md).
|
|
24
|
+
License: MIT.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"""Ship the repository's specifications/ data files inside the package (ADR-0003).
|
|
2
|
+
|
|
3
|
+
Source tree: specifications/ is two levels up (repository root). The sdist carries a copy at its
|
|
4
|
+
root, so a wheel built from the sdist (what ``uv build`` does) finds it there.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
from typing import Any
|
|
11
|
+
|
|
12
|
+
from hatchling.builders.hooks.plugin.interface import BuildHookInterface
|
|
13
|
+
|
|
14
|
+
SUBDIRS = ("attribute-mappings", "semantic-conventions", "telemetry-schemas")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class SpecificationsHook(BuildHookInterface): # type: ignore[type-arg]
|
|
18
|
+
PLUGIN_NAME = "custom"
|
|
19
|
+
|
|
20
|
+
def initialize(self, version: str, build_data: dict[str, Any]) -> None:
|
|
21
|
+
root = Path(self.root)
|
|
22
|
+
for candidate in (root / "specifications", root.parent.parent / "specifications"):
|
|
23
|
+
if (candidate / "attribute-mappings").is_dir():
|
|
24
|
+
break
|
|
25
|
+
else:
|
|
26
|
+
raise RuntimeError("specifications/ not found next to or above the package")
|
|
27
|
+
prefix = (
|
|
28
|
+
"agentic_observability_aws/_specifications"
|
|
29
|
+
if self.target_name == "wheel"
|
|
30
|
+
else "specifications"
|
|
31
|
+
)
|
|
32
|
+
for sub in SUBDIRS:
|
|
33
|
+
build_data["force_include"][str(candidate / sub)] = f"{prefix}/{sub}"
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling>=1.25"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "agentic-observability-aws"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "AWS-first, OpenTelemetry-native telemetry reconciliation, validation and reliability toolkit for agentic AI."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
authors = [{ name = "agentic-observability-aws contributors" }]
|
|
13
|
+
classifiers = [
|
|
14
|
+
"Development Status :: 3 - Alpha",
|
|
15
|
+
"License :: OSI Approved :: MIT License",
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"Topic :: System :: Monitoring",
|
|
18
|
+
"Typing :: Typed",
|
|
19
|
+
]
|
|
20
|
+
dependencies = [
|
|
21
|
+
"opentelemetry-api>=1.30",
|
|
22
|
+
"opentelemetry-sdk>=1.30",
|
|
23
|
+
"pydantic>=2.7",
|
|
24
|
+
"pyyaml>=6.0",
|
|
25
|
+
"typer>=0.12",
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
[project.urls]
|
|
29
|
+
Homepage = "https://github.com/aws-ai-observability/dev-tools"
|
|
30
|
+
Repository = "https://github.com/aws-ai-observability/dev-tools"
|
|
31
|
+
Issues = "https://github.com/aws-ai-observability/dev-tools/issues"
|
|
32
|
+
Changelog = "https://github.com/aws-ai-observability/dev-tools/blob/main/CHANGELOG.md"
|
|
33
|
+
|
|
34
|
+
[project.optional-dependencies]
|
|
35
|
+
# Lower bounds = versions the fixtures in tests/fixtures were captured from.
|
|
36
|
+
strands = ["strands-agents>=1.68.0"]
|
|
37
|
+
bedrock = ["boto3>=1.35", "opentelemetry-instrumentation-botocore>=0.66b2"]
|
|
38
|
+
agentcore = ["aws-opentelemetry-distro"]
|
|
39
|
+
openinference = ["openinference-instrumentation-strands-agents"]
|
|
40
|
+
otlp = ["opentelemetry-exporter-otlp-proto-http>=1.30"]
|
|
41
|
+
all = ["agentic-observability-aws[strands,bedrock,agentcore,openinference,otlp]"]
|
|
42
|
+
dev = ["pytest>=8", "pytest-cov>=5", "ruff>=0.6", "mypy>=1.11", "types-PyYAML"]
|
|
43
|
+
conformance = [
|
|
44
|
+
"opentelemetry-exporter-otlp-proto-grpc>=1.30",
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
[project.scripts]
|
|
48
|
+
agentic-observability-aws = "agentic_observability_aws.cli.main:app"
|
|
49
|
+
|
|
50
|
+
[tool.hatch.build.targets.wheel]
|
|
51
|
+
packages = ["src/agentic_observability_aws"]
|
|
52
|
+
|
|
53
|
+
[tool.hatch.build.targets.wheel.hooks.custom]
|
|
54
|
+
[tool.hatch.build.targets.sdist.hooks.custom]
|
|
55
|
+
|
|
56
|
+
[tool.pytest.ini_options]
|
|
57
|
+
testpaths = ["tests"]
|
|
58
|
+
addopts = "-q"
|
|
59
|
+
markers = ["integration: needs Docker; runs only with AOA_INTEGRATION=1"]
|
|
60
|
+
|
|
61
|
+
[tool.ruff]
|
|
62
|
+
line-length = 100
|
|
63
|
+
target-version = "py310"
|
|
64
|
+
|
|
65
|
+
[tool.ruff.lint]
|
|
66
|
+
select = ["E", "F", "W", "I", "B", "UP", "S", "RUF"]
|
|
67
|
+
|
|
68
|
+
[tool.ruff.lint.per-file-ignores]
|
|
69
|
+
"tests/**" = ["S101", "S603", "S607"]
|
|
70
|
+
"benchmarks/**" = ["S101"]
|
|
71
|
+
|
|
72
|
+
[tool.mypy]
|
|
73
|
+
python_version = "3.10"
|
|
74
|
+
strict = true
|
|
75
|
+
packages = ["agentic_observability_aws"]
|
|
76
|
+
mypy_path = "src"
|
|
77
|
+
|
|
78
|
+
[[tool.mypy.overrides]]
|
|
79
|
+
module = ["botocore", "botocore.*"]
|
|
80
|
+
ignore_missing_imports = true
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Reconciliation rules: source telemetry -> semantic-conventions-genai v0.1.0.
|
|
2
|
+
# Schema: specifications/telemetry-schemas/attribute-mapping.schema.json (ADR-0003).
|
|
3
|
+
# Every rule cites the fixture that shows the source behaviour and the contract test pinning it
|
|
4
|
+
# (packages/python/tests/test_fixture_contracts.py). Rules are idempotent.
|
|
5
|
+
#
|
|
6
|
+
# applies_to entries are `<source>@<verified version>[/<capture mode>]`. A rule runs on every span
|
|
7
|
+
# whose instrumentation scope matches the source. When the scope reports a different version, the
|
|
8
|
+
# rule still runs and the engine reports MAPPING-VERSION-UNVERIFIED (info) once per source version.
|
|
9
|
+
# The capture-mode suffix records where the evidence came from; rules are written to be no-ops
|
|
10
|
+
# when their trigger attributes are absent, so they are safe in every mode.
|
|
11
|
+
schema_version: 1
|
|
12
|
+
target: otel-genai@0.1.0
|
|
13
|
+
|
|
14
|
+
sources:
|
|
15
|
+
strands-agents:
|
|
16
|
+
scope_name_prefixes: ["strands."]
|
|
17
|
+
opentelemetry-instrumentation-botocore:
|
|
18
|
+
scope_name_prefixes: ["opentelemetry.instrumentation.botocore"]
|
|
19
|
+
|
|
20
|
+
rules:
|
|
21
|
+
- id: rename-gen-ai-system
|
|
22
|
+
applies_to: [strands-agents@1.68.0/default, opentelemetry-instrumentation-botocore@0.66b2]
|
|
23
|
+
action: rename
|
|
24
|
+
from: gen_ai.system
|
|
25
|
+
to: gen_ai.provider.name
|
|
26
|
+
on_conflict: keep_target
|
|
27
|
+
evidence:
|
|
28
|
+
fixtures: [strands/1.68.0/default/single_agent_tool.json, botocore/0.66b2/converse_success.json]
|
|
29
|
+
tests: [test_strands_provider_attribute_by_mode, test_botocore_converse_uses_deprecated_gen_ai_system]
|
|
30
|
+
|
|
31
|
+
- id: drop-framework-as-provider
|
|
32
|
+
description: >
|
|
33
|
+
Strands sets gen_ai.provider.name to the framework name ("strands-agents"). v0.1.0 does not require
|
|
34
|
+
the attribute on internal invoke_agent spans, and on chat spans it must name the model provider.
|
|
35
|
+
Remove it on agent, cycle and tool spans. On chat spans, replace it when the provider can be
|
|
36
|
+
derived (first matching entry in `derive`); otherwise remove it and report finding
|
|
37
|
+
GENAI-PROVIDER-UNKNOWN.
|
|
38
|
+
applies_to: [strands-agents@1.68.0]
|
|
39
|
+
action: provider_fixup
|
|
40
|
+
when: {attribute: gen_ai.provider.name, equals: strands-agents}
|
|
41
|
+
model_operations: [chat, text_completion, generate_content]
|
|
42
|
+
derive:
|
|
43
|
+
# A child span from model-client instrumentation (for example botocore under a Strands
|
|
44
|
+
# BedrockModel call) already names the real provider.
|
|
45
|
+
- from: child_provider
|
|
46
|
+
# Bedrock model IDs, inference-profile IDs and ARNs (RE2-compatible, reused in OTTL).
|
|
47
|
+
- from: request_model
|
|
48
|
+
matches: '^(arn:aws[a-z-]*:bedrock:|((us|eu|apac|global|jp|au|ca|us-gov)\.)?(amazon|anthropic|ai21|cohere|deepseek|meta|mistral|openai|qwen|stability|twelvelabs|writer|luma|google|minimax|moonshot|moonshotai|nvidia)\.)'
|
|
49
|
+
provider: aws.bedrock
|
|
50
|
+
evidence:
|
|
51
|
+
fixtures: [strands/1.68.0/gen_ai_latest_experimental/single_agent_tool.json]
|
|
52
|
+
tests: [test_strands_provider_attribute_by_mode]
|
|
53
|
+
|
|
54
|
+
- id: rename-prompt-tokens
|
|
55
|
+
applies_to: [strands-agents@1.68.0]
|
|
56
|
+
action: rename
|
|
57
|
+
from: gen_ai.usage.prompt_tokens
|
|
58
|
+
to: gen_ai.usage.input_tokens
|
|
59
|
+
on_conflict: keep_target
|
|
60
|
+
evidence: {tests: [test_strands_still_emits_deprecated_prompt_completion_tokens]}
|
|
61
|
+
|
|
62
|
+
- id: rename-completion-tokens
|
|
63
|
+
applies_to: [strands-agents@1.68.0]
|
|
64
|
+
action: rename
|
|
65
|
+
from: gen_ai.usage.completion_tokens
|
|
66
|
+
to: gen_ai.usage.output_tokens
|
|
67
|
+
on_conflict: keep_target
|
|
68
|
+
evidence: {tests: [test_strands_still_emits_deprecated_prompt_completion_tokens]}
|
|
69
|
+
|
|
70
|
+
- id: rename-cache-creation
|
|
71
|
+
applies_to: [strands-agents@1.68.0]
|
|
72
|
+
action: rename
|
|
73
|
+
from: gen_ai.usage.cache_creation.input_tokens
|
|
74
|
+
to: gen_ai.usage.cache_write.input_tokens
|
|
75
|
+
on_conflict: keep_target
|
|
76
|
+
evidence: {tests: [test_strands_latest_uses_pre_v0_1_0_cache_write_name]}
|
|
77
|
+
|
|
78
|
+
- id: drop-legacy-cache-aliases
|
|
79
|
+
applies_to: [strands-agents@1.68.0/default]
|
|
80
|
+
action: remove
|
|
81
|
+
attributes: [gen_ai.usage.cache_read_input_tokens, gen_ai.usage.cache_write_input_tokens]
|
|
82
|
+
evidence: {fixtures: [strands/1.68.0/default/single_agent_tool.json]}
|
|
83
|
+
|
|
84
|
+
- id: agent-span-usage-not-additive
|
|
85
|
+
description: >
|
|
86
|
+
Strands copies the summed child chat-span usage onto invoke_agent spans. v0.1.0 removes cache usage
|
|
87
|
+
from internal invoke_agent spans. In "model-spans-only" mode (the default), remove gen_ai.usage.*
|
|
88
|
+
from invoke_agent spans that have chat descendants carrying usage, and record the removed totals
|
|
89
|
+
as agentic_observability_aws.rollup.usage.* so they are not lost.
|
|
90
|
+
applies_to: [strands-agents@1.68.0]
|
|
91
|
+
action: usage_rollup
|
|
92
|
+
span: {attribute: gen_ai.operation.name, equals: invoke_agent}
|
|
93
|
+
descendant: {attribute: gen_ai.operation.name, equals: chat}
|
|
94
|
+
usage_prefix: gen_ai.usage.
|
|
95
|
+
rollup_prefix: agentic_observability_aws.rollup.usage.
|
|
96
|
+
evidence: {tests: [test_strands_agent_span_repeats_child_model_usage]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Semantic conventions
|
|
2
|
+
|
|
3
|
+
The toolkit targets **semantic-conventions-genai v0.1.0** (on core semconv **v1.45.0**). See
|
|
4
|
+
[target.yaml](target.yaml).
|
|
5
|
+
|
|
6
|
+
Why this version: since core semconv v1.42.0, GenAI attributes in the core registry are deprecated
|
|
7
|
+
with "Moved to the OpenTelemetry GenAI semantic conventions repository"
|
|
8
|
+
(`opentelemetry-semantic-conventions` 0.66b2). v0.1.0 is that repository's first and only release.
|
|
9
|
+
|
|
10
|
+
Breaking changes in v0.1.0 that affect the captured sources (`tests/fixtures/`):
|
|
11
|
+
|
|
12
|
+
| v0.1.0 change | Strands 1.68.0 | botocore 0.66b2 |
|
|
13
|
+
|---|---|---|
|
|
14
|
+
| `gen_ai.system` → `gen_ai.provider.name` | default mode emits `gen_ai.system` | emits `gen_ai.system` |
|
|
15
|
+
| `gen_ai.usage.cache_creation.input_tokens` → `cache_write.input_tokens` | emits the old name in both modes | n/a |
|
|
16
|
+
| Cache usage removed from internal `invoke_agent` span | present on agent span | n/a |
|
|
17
|
+
| JSON-schema attributes need structured values, not JSON strings | `gen_ai.system_instructions`, `gen_ai.agent.tools` are JSON strings | n/a |
|
|
18
|
+
| `gen_ai.client.token.usage` histogram replaced by `gen_ai.client.inference.operation.{input,output}_tokens` | n/a | emits the old histogram |
|
|
19
|
+
| `gen_ai.client.operation.duration` no longer used for inference → `gen_ai.client.inference.duration` | n/a | emits the old histogram |
|
|
20
|
+
|
|
21
|
+
Long-deprecated names that Strands still emits in both modes: `gen_ai.usage.prompt_tokens` and
|
|
22
|
+
`gen_ai.usage.completion_tokens`.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Convention versions the toolkit targets. One place; everything else references this file.
|
|
2
|
+
genai:
|
|
3
|
+
repository: https://github.com/open-telemetry/semantic-conventions-genai
|
|
4
|
+
version: v0.1.0 # released 2026-11-21; first standalone GenAI release
|
|
5
|
+
depends_on_core: v1.45.0 # https://github.com/open-telemetry/semantic-conventions
|
|
6
|
+
core:
|
|
7
|
+
repository: https://github.com/open-telemetry/semantic-conventions
|
|
8
|
+
version: v1.45.0
|
|
9
|
+
validation_tool:
|
|
10
|
+
name: OpenTelemetry Weaver
|
|
11
|
+
version: v0.28.0
|
|
12
|
+
role: per-span registry conformance (missing attributes, type mismatches) via `weaver registry live-check`
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Telemetry schemas
|
|
2
|
+
|
|
3
|
+
| File | Validates |
|
|
4
|
+
|---|---|
|
|
5
|
+
| [attribute-mapping.schema.json](attribute-mapping.schema.json) | `attribute-mappings/*.yaml` (ADR-0003) |
|
|
6
|
+
|
|
7
|
+
`attribute-mapping.schema.json` is generated from the Python loader's models
|
|
8
|
+
(`agentic_observability_aws.processors.normalizer.mapping.mapping_json_schema()`); a test fails
|
|
9
|
+
when the two drift. Validation-profile files arrive with configurable profiles (v0.2+).
|