Skip to content

onError: adopt the granular where labels from JS #46 #30

Description

@anassg-lago

JS PR getlago/lago-agent-sdk-js#46 introduced granular where labels and documents them in the README: adapter.<provider> (response unparseable — nothing billed), wrapper.<provider> (interception failed), shutdown_drain (exit-drain loss). Python still reports "emit" at all 14 wrapper sites and the default "send_batch" from the exit drain, so a drifted adapter is indistinguishable from an emit failure — and the README's "alert on adapter.*" advice only works on the JS port.

Port the same labels:

  • each wrapper's extract/emit exceptadapter.<provider> (adapter.bedrock_converse / adapter.bedrock_invoke on the split Bedrock paths)
  • interception-failure sites → wrapper.<provider>
  • exit drain → shutdown_drain

Mirror the README error-policy table too.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions