Saravanan666/pypi-org huggingface dataset:
Package: sentry2csv
sentry2csvDump Sentry issues to CSV for further analysis.$sentry2csv--tokenf9u3fdu821ed9j10sj19kjd991010sparkmeterTopSecretProject13
Fetchingissuespage1Exportedtosparkmeter-TopSecretProject13-export.csv
$head-2sparkmeter-TopSecretProject13-export.csv
Error,Location,Details,Events,Users,Notes,Link
AttributeError,secret_project.tasks.remove_every_zig,'NoneType'objecthasnoattribute'zig_count',12,1,,https://sentry.io/organizations/sparkmeter/issues/129481/Installationsentry2csv is available on PyPI.pipx (reccomended)pipxis a tool that allows you to install and run Python applications in isolated environments.Install pipx, following their instructionsInstall sentry2csv:pipx install sentry2csvpipAlternatively, you can install sentry2csv using standard pip.pip3 install sentry2csvUseGet a Sentry API Token fromhttps://sentry.io/settings/account/api/auth-tokens/Run the exporter:sentry2csv --token <API_TOKEN> <SENTRY_ORG> <SENTRY_PROJECT>For example,sentry2csv --token f9u3fdu821ed9j10sj19kjd991010 sparkmeter TopSecretProject13This also accepts an optional--enrichflag. Enrichments augment issues with data from the latest event.
An enrichment is in the form ofdotted.sentry.path=CSV_Field_Name, and multiple enrichments are comma-separated.DevelopmentClone this repositoryCreate a virtualenv with Python 3.7 or greatere.g.,mkvirtualenv -p $(which python3.7) sentry2csvInstall the package in editable mode:pip install -e .[dev]Hack away!
Package: sentry-46elks
# sentry-46elksSentry plugin for notifying users by text through the 46elks APIAuthor:Jacob Magnusson. [Follow me on Twitter][twitter]# OverviewSentry plugin for notifying users by text through the [46elks][46elks] API# Requirementsrequests 1.0+# InstallationInstall usingpip…pip install sentry-46elksPlugin will automatically be found by the current env’s sentry (though a restart of the sentry daemon might be needed).# Documentation[docs]# Changelog## 0.1.2Date: Dec 31, 2012Fix old-style requires argument in setup.py## 0.1.1Date: Dec 31, 2012Initial version# LicenseCopyright (c) 2012 Jacob MagnussonPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.[twitter]:https://twitter.com/pyjacob[docs]:https://github.com/jmagnusson/sentry-46elks[46elks]:http://46elks.com/
Package: sentry-api-python
sentry-api-pythonThis project aims to simplify communication withSentry REST API.It is in quite early stage, our approach is simple. We cover first endpoints that we use for our tools.
But new PRs are more than welcome.Installationpipinstallsentry-api-pythonExample of useCreate projectfromsentry_api.apiimportSentryApisentry_api=SentryApi(organization_slug="my-org",token="<Your Auth Token https://docs.sentry.io/api/auth/>",)response=sentry_api.projects.create(team_slug="backend",project=dict(name="My first project"))Create alert with Slack + Linear integrationfromsentry_api.apiimportSentryApisentry_api=SentryApi(organization_slug="my-org",token="<Your Auth Token https://docs.sentry.io/api/auth/>",endpoint_url="https://sentry.io/api/0/",)response=sentry_api.project_rules.create(project_slug="my-first-project",rule={"name":"Prod issues","owner":"team:<id of team>","environment":"prod","actionMatch":"any","filterMatch":"all","frequency":10080,# One week"conditions":[{"id":"sentry.rules.conditions.first_seen_event.FirstSeenEventCondition"},{"id":"sentry.rules.conditions.regression_event.RegressionEventCondition"},],"actions":[{"workspace":"<slack workspace>","id":"sentry.integrations.slack.notify_action.SlackNotifyServiceAction","channel":"#alerts-production","channel_id":"<https://docs.sentry.io/product/integrations/notification-incidents/slack/#rate-limiting-error>",},{"id":"sentry.rules.actions.notify_event_sentry_app.NotifyEventSentryAppAction","sentryAppInstallationUuid":"<app installation here>","settings":[{"name":"teamId","value":"<linear team id>"},{"name":"assigneeId","value":""},{"name":"labelId","value":"<label id>"},{"name":"projectId","value":""},{"name":"stateId","value":"<state id>"},{"name":"priority","value":"1"},],"hasSchemaFormConfig":True,},],},)print(response.json())
Package: sentry-arroyo
ArroyoArroyois a library to build streaming applications that consume from and produce to Kafka.Arroyo consists of three components:Consumer and producer backendsThe Kafka backend is a wrapper around the librdkafka client, and attempts to simplify rebalancing and offset management even furtherThere is also an in memory and a file based consumer and producer implementation that can be used for testingA strategy interfaceArroyo includes a number of pre-built strategies such asRunTask,Filter,Reduce,CommitOffsetsand more.Users can write their own strategies, though in most cases this should not be needed as the library aims to provide generic, reusable strategies that cover most stream processing use casesStrategies can be chained together to form complex message processing pipelines.A streaming engine which manages the relationship between the consumer and strategiesTheStreamProcessorcontrols progress by the consumer and schedules work for execution by the strategies.All documentation is in thedocsdirectory. It is hosted athttps://getsentry.github.io/arroyo/and can be built locally by runningmake docs
Package: sentry-asgi
sentry-asgiSentry integration for ASGI frameworks.Installation:pipinstallsentry-asgiUsage:fromsentry_asgiimportSentryMiddlewareimportsentry_sdksentry_sdk.init(dsn=...)app=...app=SentryMiddleware(app)Here's a more complete example, using Starlette:importsentry_sdkfromsentry_asgiimportSentryMiddlewaresentry_sdk.init(dsn=...)app=Starlette()@app.route("/")defhomepage(request):raiseValueError("nope")app.add_middleware(SentryMiddleware)NotesPython version supportThe Sentry SDK requires Python 3.7'scontextvarssupport in order to properly
tie messages and logging back to the request context that is added SentryMiddleware.On 3.6 and below the SentryMiddleware will capture and log application exceptions just fine,
but will not properly tie in logging, messages, or breadcrumbs for any code that
runs within a threadpool executor or subtask.ASGI frameworks should ensure that any thread pool executorspreserve thecontextvarcontext.Endpoint informationIt is recommended that frameworks populate an "endpoint" key in the ASGI scope,
to indicate which view function or class should be logged by the middleware.
Package: sentry-auth-authsch
An SSO provider for Sentry which enablesAuthSCHauthentication.This work is relying onsentry’s internal OAuth2 implementationand inspired byGoogle SSO provider for Sentry.Install$ pip install sentry-auth-authschSetupCreate a new OAuth Client on thedeveloper console of AuthSCH.For redirect uri, add the SSO endpoint of your installation:https://sentry.example.com/auth/sso/Put your client id and secret into yoursentry.conf.py:AUTHSCH_CLIENT_ID=""AUTHSCH_CLIENT_SECRET=""
Package: sentry-auth-gitlab-v2
.. image::https://badge.fury.io/py/sentry-auth-gitlab-v2.svg:target:https://badge.fury.io/py/sentry-auth-gitlab-v2Disclaimer 1Thats a second level for of this library. This fork was made in order to prepare PyPi package and make installation process easier via supported plugins install flow.
Original fork disclamer is below.Disclaimer 2I am NOT a python developer. I just changed what was necessary to make it work. This repository can be used directly or be an inspiration to others to enable Gitlab SSO with Sentry 10. These files can be installed from local folder only as no updated package is available in pip repository.How toMain problemDjango has been updated in Sentry 10 and previous scripts don't work anymore.InstallAddsentry-auth-gitlab-v2to list of plugins atsentry/requirements.txt.Setup Gitlab Auth configuration for Sentry as mentioned in original documentation bellowStop, rebuild and restart your Sentry docker containers to accept new configuration and plugins.. code-block:: bashdocker-compose down
docker-compose build
docker-compose up -dItshouldwork.
Tested with sentry 20.6.0 and official sentry/onpremise installation.GitLab Auth for Sentryv0.1.0An SSO provider for Sentry which enables GitLab LoginChanges made for Gitlab 9.xFollowing configuration has been changed.. code-block:: pythonYou can specify scope to "api" in Gitlab's OAuth Application pageIf you failed to do that, set GITLAB_AUTH_SCOPE = "read_user"GITLAB_AUTH_SCOPE = "api"If your gitlab does not support v4 api, set GITLAB_API_VERSION = 3GITLAB_API_VERSION = 4Install::pip install sentry-auth-gitlab-v2SetupCreate a new application under your GitLab.
Enter theCallback URLas the prefix to your Sentry installation:::http(s?)://sentry.example.com/auth/sso/Once done, grab your API keys and drop them in your ``sentry.conf.py:.. code-block:: pythonGITLAB_APP_ID = "APP-ID"
GITLAB_APP_SECRET = "APP-SECRET"
GITLAB_BASE_DOMAIN = "git.example.com"Optionally you may also specify the api version, scheme, and scope:.. code-block:: pythonGITLAB_API_VERSION = 4
GITLAB_AUTH_SCOPE = "api"
GITLAB_HTTP_SCHEME = "https"NoticeIf your gitlab is deployed in a private network (probably).
You need to alter sentry's default ip black list to make oauth flow work.Put following config in yoursentry.conf.pyand delete conflit ones.. code-block:: pythonSENTRY_DISALLOWED_IPS = (
    '0.0.0.0/8',
    '10.0.0.0/8',
    '100.64.0.0/10',
    '127.0.0.0/8',
    '169.254.0.0/16',
    '172.16.0.0/12',
    '192.0.0.0/29',
    '192.0.2.0/24',
    '192.88.99.0/24',
    '192.168.0.0/16',
    '198.18.0.0/15',
    '198.51.100.0/24',
    '224.0.0.0/4',
    '240.0.0.0/4',
    '255.255.255.255/32'
)
Package: sentry-auth-oidc
An SSO provider for Sentry which enablesOpenID ConnectApps authentication.This is a fork ofsentry-auth-google.Why fork, instead of adapting sentry-auth-google to work with every OpenID Connect provider?The maintainer has different ideas with sentry-auth-google. See:https://github.com/getsentry/sentry-auth-google/pull/29https://github.com/getsentry/sentry/issues/5650Install$ pip install sentry-auth-oidcExample Setup for GoogleStart bycreating a project in the Google Developers Console.In theAuthorized redirect URIsadd the SSO endpoint for your installation:https://sentry.example.com/auth/sso/Naturally other providers, that are supporting OpenID-Connect can also be used (like GitLab).Finally, obtain the API keys and the well-known account URL and plug them into yoursentry.conf.py:OIDC_CLIENT_ID=""OIDC_CLIENT_SECRET=""OIDC_SCOPE="openid email"OIDC_DOMAIN="https://accounts.google.com"# e.g. for GoogleTheOIDC_DOMAINdefines where the OIDC configuration is going to be pulled from.
Basically it specifies the OIDC server and adds the path.well-known/openid-configurationto it.
That’s where different endpoint paths can be found.Detailed information can be found in theProviderConfigspecification.You can also defineOIDC_ISSUERto change the default provider name in the UI, even when theOIDC_DOMAINis set.If your provider doesn’t support theOIDC_DOMAIN, then you have to set these
required endpoints by yourself (autorization_endpoint, token_endpoint, userinfo_endpoint, issuer).OIDC_AUTHORIZATION_ENDPOINT="https://accounts.google.com/o/oauth2/v2/auth"# e.g. for GoogleOIDC_TOKEN_ENDPOINT="https://www.googleapis.com/oauth2/v4/token"# e.g. for GoogleOIDC_USERINFO_ENDPOINT="https://www.googleapis.com/oauth2/v3/userinfo"# e.g. for GoogleOIDC_ISSUER="Google"DevelopmentFAQIf you are using macOS brew’s openssl and you get a psycopg build error such as:ld: library not found for -lsslPlease setup the following environment variables:exportLDFLAGS="-L/usr/local/opt/openssl/lib"exportCPPFLAGS="-I/usr/local/opt/openssl/include"
Package: sentry-auth-oidc-cxg
An SSO provider for Sentry which enablesOpenID ConnectApps authentication.This is a fork ofsentry-auth-google.Why fork, instead of adapting sentry-auth-google to work with every OpenID Connect provider?The maintainer has different ideas with sentry-auth-google. See:https://github.com/getsentry/sentry-auth-google/pull/29https://github.com/getsentry/sentry/issues/5650Install$ pip install sentry-auth-oidcExample Setup for GoogleStart bycreating a project in the Google Developers Console.In theAuthorized redirect URIsadd the SSO endpoint for your installation:https://sentry.example.com/auth/sso/Naturally other providers, that are supporting OpenID-Connect can also be used (like GitLab).Finally, obtain the API keys and the well-known account URL and plug them into yoursentry.conf.py:OIDC_CLIENT_ID=""OIDC_CLIENT_SECRET=""OIDC_SCOPE="openid email"OIDC_DOMAIN="https://accounts.google.com"# e.g. for GoogleTheOIDC_DOMAINdefines where the OIDC configuration is going to be pulled from.
Basically it specifies the OIDC server and adds the path.well-known/openid-configurationto it.
That’s where different endpoint paths can be found.Detailed information can be found in theProviderConfigspecification.You can also defineOIDC_ISSUERto change the default provider name in the UI, even when theOIDC_DOMAINis set.If your provider doesn’t support theOIDC_DOMAIN, then you have to set these
required endpoints by yourself (autorization_endpoint, token_endpoint, userinfo_endpoint, issuer).OIDC_AUTHORIZATION_ENDPOINT="https://accounts.google.com/o/oauth2/v2/auth"# e.g. for GoogleOIDC_TOKEN_ENDPOINT="https://www.googleapis.com/oauth2/v4/token"# e.g. for GoogleOIDC_USERINFO_ENDPOINT="https://www.googleapis.com/oauth2/v3/userinfo"# e.g. for GoogleOIDC_ISSUER="Google"
Package: sentry-auth-oidc-shib
OIDC Auth for Sentry (Shibboleth)An SSO provider for Sentry which enablesOpenID ConnectApps authentication for Shibboleth. This is a fork ofsiemens/sentry-auth-oidc, which was also forked fromgetsentry/sentry-auth-google.Why fork, instead of adaptingsiemens/sentry-auth-oidcorgetsentry/sentry-auth-googleto work with every OIDC?The maintainers have different ideas. See:https://github.com/getsentry/sentry-auth-google/pull/29https://github.com/getsentry/sentry/issues/5650Also the fork ofsiemens/sentry-auth-oidcdoesn't work very well with ShibbolethThe scopeopenidis always returned for unauthorized users, which aren't in the given example entitlementsentry-users.For that reason the request after authorization is redirected to sentry instead of directly showing an 403 error page on the identity provider side.Installpipinstallsentry-auth-oidc-shibSetup steps for usage with ShibbolethShibbolethConfiguremetadata/oidc-client.json{"scope":"openid profile email","redirect_uris":["https://sentry.example.com/auth/sso/"],"sector_identifier_uri":"https://sentry.example.com","client_id":"<client-id>","subject_type":"pairwise","client_secret":"<client-secret>","response_types":["code"],"grant_types":["authorization_code"]}Configureconf/intercept/context-check-intercept-config.xml#Contentof<beanid="shibboleth.context-check.Condition"parent="shibboleth.Conditions.AND"><constructor-arg><list><beanclass="net.shibboleth.idp.profile.logic.SimpleAttributePredicate"p:useUnfilteredAttributes="true"><propertyname="attributeValueMap"><map><entrykey="oidcPermissions"><list><value>true</value></list></entry></map></property></bean></list></constructor-arg></bean>Configureconf/attribute-resolver.xml<AttributeDefinitionxsi:type="ScriptedAttribute"id="oidcPermissions"dependencyOnly="false"><InputDataConnectorref="myLDAP"attributeNames="eduPersonEntitlement"/><Script><![CDATA[logger = Java.type("org.slf4j.LoggerFactory").getLogger("edu.internet2.middleware.shibboleth.resolver.Script.eduPersonPrincipalNameSource");// Get attribute to addpeerEntityId = profileContext.getSubcontext("net.shibboleth.idp.profile.context.RelyingPartyContext").getRelyingPartyId();if (peerEntityId.equals("sentry.example.com")&& eduPersonEntitlement.getValues().contains("urn:mace:example.com:permission:shibboleth:sentry-users")){logger.info("User can successfully login to " + peerEntityId);oidcPermissions.getValues().add("true");}]]></Script></AttributeDefinition>Configureconf/relying-party.xml<beanparent="RelyingPartyByName"c:relyingPartyIds="sentry.example.com"><propertyname="profileConfigurations"><list><beanparent="OIDC.SSO"p:postAuthenticationFlows="#{ {'context-check'} }"/><refbean="OIDC.UserInfo"/></list></property></bean>SentryConfiguresentry/sentry.conf.pyOIDC_CLIENT_ID="<client-id>"OIDC_CLIENT_SECRET="<client-secret>"OIDC_SCOPE="openid profile email"OIDC_DOMAIN="https://shibboleth.example.com"Configuresentry/enhance-image.shpipinstallsentry-auth-oidc-shib
Package: sentry-bearychat
sentry-bearychat================An extension for `Sentry <https://getsentry.com>`_ which posts notifications to a `BearyChat <https://bearychat.com>`_ channel... image:: https://cloud.githubusercontent.com/assets/2056489/4951031/44416b9c-6662-11e4-825d-b179b614828a.pngQuickStart----------1. Install the package via ``pip``::pip install sentry-bearychat2. Restart your sentry service3. Login your sentry website, and enter `Manage Integrations`_ page of your project... image:: https://cloud.githubusercontent.com/assets/2056489/4988175/bb5e5ef8-6999-11e4-9cef-2f6326a02ef2.png4. Tick the checkbox of `BearyChat`_... image:: https://cloud.githubusercontent.com/assets/2056489/4988184/d775e07a-6999-11e4-853a-72997ccbca6d.png5. Paste the webhook link form `bearychat`_ in Webhook field... image:: https://cloud.githubusercontent.com/assets/2056489/4988990/452d51e6-69ab-11e4-87f6-7cb3813ad309.png.. image:: https://cloud.githubusercontent.com/assets/2056489/4988191/1f70ce30-699a-11e4-9afe-272d03625693.png6. Then you can get notifications in bearychat... image:: https://cloud.githubusercontent.com/assets/2056489/4951031/44416b9c-6662-11e4-825d-b179b614828a.png
Package: sentry-bigquery
Sentry BigQuery pluginPlugin for Sentry which forward data toBigQuery.InstallationInstall this packagepipinstallsentry-bigqueryRestart your Sentry instance.Go to your Sentry web interface. OpenSettingspage of one of your projects.OnIntegrations(orLegacy Integrations) page, findBigQueryplugin and enable it.Configure plugin onConfigure pluginpage.Add project ID (Dataset ID from admin panel)Addaccount infofileDone!
Package: sentry-bitbucket
Author:Neil AlbrockVersion:0.1.5An extension for Sentry which integrates with Bitbucket. Specifically, it allows you to easily create issues from events within Sentry.This is largely a port of thesentry-githubpackage, the main difference being that it makes use of therequestslibrary for communication with Bitbucket and implements OAuth, which is the preferred way to integrate with their API.InstallationInstall the package viapip:$ pip install sentry-bitbucketEnsure you’ve configured Bitbucket auth in Sentry by adding the following to yoursentry.conf.py:# Bitbucket needs to be included as a valid auth provider
SENTRY_AUTH_PROVIDERS = {
    'twitter': ('TWITTER_CONSUMER_KEY', 'TWITTER_CONSUMER_SECRET'),
    'facebook': ('FACEBOOK_APP_ID', 'FACEBOOK_API_SECRET'),
    'github': ('GITHUB_APP_ID', 'GITHUB_API_SECRET'),
    'google': ('GOOGLE_OAUTH2_CLIENT_ID', 'GOOGLE_OAUTH2_CLIENT_SECRET'),
    'trello': ('TRELLO_API_KEY', 'TRELLO_API_SECRET'),
    'bitbucket': ('BITBUCKET_CONSUMER_KEY', 'BITBUCKET_CONSUMER_SECRET'),
}

# https://bitbucket.org/account/user/<username>/api
BITBUCKET_CONSUMER_KEY = ''
BITBUCKET_CONSUMER_SECRET = ''Associate your account with Bitbucket (if you haven’t already) via Account -> Identities.You’ll now see a new action on groups which allows quick creation of Bitbucket issues.CaveatsIf you have multiple Bitbucket identities associated in Sentry, the plugin will just select
one to use.
Package: sentry_campfire
A Sentry plugin that allows notifications to be sent to CampfireInstallationTo install and use this plugin just install it viapip:pip install sentry_campfireThis plugin depends on theCamplight library.
Unfortunately, it’s not yet on PyPi. Install it viapip:pip install -e git+https://github.com/mlafeldt/camplight#egg=camplightYou’re going to need to installsentry_campfirebefore installingcamplight.
You can configure the plugin via the web UI.
Package: sentry-cardinal
# Sentry CardinalThis extension to [Sentry](https://github.com/dcramer/sentry) adds a littlespice when dealing with longwinded tracebacks (such as those generated by Railsapplications).## Features###  Filtered TracebacksTraceback frames may be annotated with a `context_type`. By default, onlyframes with a `context_type` of 'application' will be shown, but you caneasily toggle to show the full or framework tracebacks.### Grouping of exceptions by a `cleaned_function` nameFrameworks like rails that dynamically create functions sometimes createfunction names that differ, but are functionally identical. In these cases,the client may want to specify a `cleaned_function` attribute for a frame thatwill be used to compute the message's group rather than the `function`attribute.## UsageAdd `sentry_cardinal` to sentry's `INSTALLED_APPS`. You will need to configureyour client to send stack traces with the interface`sentry_cardinal.interfaces.Stacktrace` instead of the usual`sentry.interfaces.Stacktrace`.
Package: sentry-cassandra-nodestore
sentry-cassandra-nodestorageALumanox, LLCOpen Source project.Sentryextension implementing the
NodeStorage interface for CassandraInstallation$pipinstallsentry-cassandra-nodestoreConfigurationCREATEKEYSPACEsentryWITHreplication={'class':'SimpleStrategy','replication_factor':'2'};USEsentry;CREATETABLEnodestore(keytextPRIMARYKEY,flagsint,valueblob)WITHcompaction={'sstable_size_in_mb':'160','class':'LeveledCompactionStrategy'}ANDcompression={'sstable_compression':'SnappyCompressor'};SENTRY_NODESTORE='sentry-cassandra-nodestore.backend.CassandraNodeStorage'SENTRY_NODESTORE_OPTIONS={'servers':['127.0.0.1:9042',],# (optional) specify an alternative keyspace'keyspace':'sentry',# (optional) specify an alternative columnfamily'columnfamily':'nodestore',}
Package: sentry-chalice
Sentry-chaliceSentry-Chalice allow the integration of Chalice on sentry.You can use sentry-chalice integration like this:importsentry_sdkfromchaliceimportChalicefromsentry_chaliceimportChaliceIntegrationsentry_sdk.init(dsn="https://<key>@<organization>.ingest.sentry.io/<project>",integrations=[ChaliceIntegration()])app=Chalice(app_name='appname')sentry-chalice now it works just for views: @app.route.You can create a route that triggers an error for validate your Sentry installation, like this:@app.route('/boom')defboom():raiseException('boom goes the dynamite!')when you enter the route will throw an error that will be captured by Sentry.BehaviorRequest data is attached to all events: HTTP method, URL, headers, form data, JSON payloads. Sentry excludes raw bodies and multipart file uploads. Sentry also excludes personally identifiable information (such as user ids, usernames, cookies, authorization headers, IP addresses) unless you set send_default_pii to True.Each request has a separate scope. Changes to the scope within a view, for example setting a tag, will only apply to events sent as part of the request being handled.