Skip to content

Commit

Permalink
Update index.mdx to resolve ValueError (#10564)
Browse files Browse the repository at this point in the history
* Update index.mdx

Changed 'endpoint' to 'function_name' under how to name transactions showing in Sentry Tracing.

Resolves a ValueError when configuring Sentry for Django:
ValueError: Invalid value for transaction_style: endpoint (must be in ('function_name', 'url'))

* Update docs/platforms/python/integrations/django/index.mdx

---------

Co-authored-by: Liza Mock <lizka920@gmail.com>
  • Loading branch information
jvithoulkas and lizokm authored Jul 9, 2024
1 parent 368e36b commit 52e71f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/platforms/python/integrations/django/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ You can pass the following keyword arguments to `DjangoIntegration()`:

- `transaction_style`:

How to name transactions showing up in Sentry tracing.
How to name transactions that show up in Sentry tracing.

- `"/myproject/myview/<foo>"` if you set `transaction_style="url"`.
- `"myproject.myview"` if you set `transaction_style="endpoint"`.
- `"myproject.myview"` if you set `transaction_style="function_name"`.

The default is `"url"`.

Expand Down

0 comments on commit 52e71f0

Please sign in to comment.