Skip to content

Setting transaction name in pyramid #683

@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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions