8000 Setting transaction name in pyramid · Issue #683 · getsentry/sentry-python · GitHub
[go: up one dir, main page]

Skip to content
Setting transaction name in pyramid #683
Closed
@ergo

Description

@ergo

Hi is it possible to set transaction name when using PyramidIntegration?
I tried setting scope.transaction = "mycustomname" but it seems that integration itself does:

    try:
        if integration.transaction_style == "route_name":
            event["transaction"] = request.matched_route.name
        elif integration.transaction_style == "route_pattern":
            event["transaction"] = request.matched_route.pattern
    except Exception:
        pass

And I suspect that overwrites anything I've set up earlier?

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

      0