Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create environments with some special characters #18796

Open
JoelAzevedo opened this issue May 13, 2020 · 5 comments
Open

Can't create environments with some special characters #18796

JoelAzevedo opened this issue May 13, 2020 · 5 comments

Comments

@JoelAzevedo
Copy link

JoelAzevedo commented May 13, 2020

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.com_backoffice 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
Copy link

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
Copy link
Contributor

github-actions bot commented Jan 6, 2021

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
Copy link

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
Copy link
Member

I suggest we can close this issue.

No objection here. :)

@github-actions github-actions bot locked and limited conversation to collaborators Mar 11, 2021
@gid-sentry
Copy link

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

@gid-sentry gid-sentry reopened this Apr 22, 2024
@gid-sentry gid-sentry added the Sync: Jira apply to auto-create a Jira shadow ticket label Apr 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: No status
Development

No branches or pull requests

7 participants