Skip to content

Add SDK-side metrics guardrail defaults - #61

Merged
manas-fortifyroot merged 1 commit into
mainfrom
feature/metrics-guardrail-sdk-defaults
Jun 23, 2026
Merged

Add SDK-side metrics guardrail defaults#61
manas-fortifyroot merged 1 commit into
mainfrom
feature/metrics-guardrail-sdk-defaults

Conversation

@manas-fortifyroot

Copy link
Copy Markdown
Contributor

Summary

Updates the Python SDK to cooperate with backend metrics guardrails by emitting stable producer identity and avoiding sub-minute managed metrics exports.

Changes

  • Clamps explicit OTEL_METRIC_EXPORT_INTERVAL below 60000ms.
  • Injects a per-process UUID4 service.instance.id when absent.
  • Preserves customer-provided service.instance.id.
  • Preserves OTEL_RESOURCE_ATTRIBUTES-provided service.instance.id.
  • Adds tests for clamp and instance-id behavior.

Validation

  • poetry run pytest

@manas-fortifyroot
manas-fortifyroot merged commit 74a12ea into main Jun 23, 2026
6 checks passed
@manas-fortifyroot
manas-fortifyroot deleted the feature/metrics-guardrail-sdk-defaults branch June 23, 2026 09:56
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.

1 participant