getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
38.61k stars 4.13k forks source link

Can't create environments with some special characters #18796

Open JoelAzevedo opened 4 years ago

JoelAzevedo commented 4 years ago

Important Details

How are you running Sentry? Other, version 5.15.5, [Angular 8.2]

Description

I have several angular 8 applications with sentry and I want to create environments based on the hostname and app name. something like: example.com/backoffice Unfortunately, I can't have the "/" character, no matter what I do.

I had to create a resulting environment like _example.combackoffice just because when I used "/" the environment was not detected on Sentry's dashboard.

Steps to Reproduce

In my Typescript, when I initialize the environment, If I write this:

Sentry.init({
  dsn: environment.sentryDsn,
  environment: environment.hostname + '/backoffice'
});

the environment is not set.

If I write this:

Sentry.init({
  dsn: environment.sentryDsn,
  environment: environment.hostname + '_backoffice'
});

it is defined and appears.

Anyone with the same issue?

┆Issue is synchronized with this Jira Improvement by Unito

vnenkpet commented 4 years ago

True. I had a similar issue with this and couldn't find the reason for this. This should at least be documented, currently the docs say the only non-allowed characters are newline and whitespace and that it cannot be the string "None"

github-actions[bot] commented 3 years ago

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Accepted, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

PeloWriter commented 3 years ago

We have added to the content regarding naming environments. I suggest we can close this issue.

Sentry automatically creates environments when it receives an event with the environment tag. Environments are case sensitive. The environment name can't contain newlines, spaces or forward slashes, can't be the string "None", or exceed 64 characters. You can't delete environments, but you can hide them.

chadwhitacre commented 3 years ago

I suggest we can close this issue.

No objection here. :)

gid-sentry commented 5 months ago

Adding a comment here as we've had a customer request the ability to add / in the naming of environments.