You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm integrating the RollBar with python for our project that ran on Docker.
But I can't override the host name of Server. Rollbar is only reporting default host name. How can I change the host name ?
The text was updated successfully, but these errors were encountered:
EricSei
changed the title
Can not override the host name
Unable to Override the Host name
Jul 11, 2019
import rollbar
orig_build_server_data = rollbar._build_server_data
def new_build_server_data():
data = orig_build_server_data()
data['host'] = 'my hostname value goes here' # call a function to get this, etc.
return data
rollbar._build_server_data = new_build_server_data
Note that the official rollbar docs recommend setting the host for multiple production environments:
Recommended usage
Use the environment value production for all errors from and deploys to any production environment, even if you have multiple production environments.
Use the host property in your error payloads to include the 'full path' of the server where an error occurred, including the name of the region/zone, e.g. us-east-1-web02 for the server web-02 that is hosted in the us-east-1 region.
So this should probably be supported. I can work on a PR for this if you'd like.
I'm integrating the RollBar with python for our project that ran on Docker.
But I can't override the host name of Server. Rollbar is only reporting default host name. How can I change the host name ?
The text was updated successfully, but these errors were encountered: