Sentry Python SDK, don't send server_name


#1

Hi!
I was wondering how I can prevent sending the machine’s hostname to sentry?
Setting sending_default_pii to False didn’t have any effect. on that.
Thanks in advance!


#2

You can typically override the ‘server_name’ attribute in core config. Setting it to an empty value might be enough, but I dont know the specifics of the current generation SDKs.


#3
sentry_sdk.init(
    server_name=None
)

We don’t consider the hostname PII because it usually is not a unique identifier. MAC address probably would be.


#4

Yep! it works, thanks :smiley: