Skip to content

Introduce config for MAX_STRING_LENGTH #2121

Closed

Description

@puittenbroek

Problem Statement

In our on-premises Sentry, we're regularly missing some context information (variables, part of variables) in our issues. This is quite annoying since they usually contain ID or hashes that we need to further debug the information.
We want to raise the limit that the Sentry SDK sends. But that limit is hard coded.

There is a nice TODO, saying it should be read from config, but I cannot find any issues regarding that.

So the only solution would be monkeypatching this value. Which I consider the source of (all) evil and should be avoided, especially in production environment.

Solution Brainstorm

  1. Introduce a config for MAX_STRING_LENGTH
  2. Read MAX_STRING_LENGTH from said config
  3. Optional: Document said config with a disclaimer that you can/will break Sentry internals if you raise this limit to a too high value (assumption, I'm sure it's set to it's current value for a reason)

Activity

  1. antonpirker commented on May 17, 2023

    @antonpirker
    Contributor

    Hey @puittenbroek !

    Sounds like a good suggestion.
    What do you think, do you want to give it a go and submit a PR?

  2. puittenbroek commented on May 23, 2023

    @puittenbroek
    ContributorAuthor

    I'll try and squeeze it in between things :)

  3. github-actions commented on Jun 14, 2023

    @github-actions
    Contributor

    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: Backlog or Status: In Progress, I will leave it alone ... forever!


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

  4. puittenbroek commented on Jun 14, 2023

    @puittenbroek
    ContributorAuthor

    Spent some time on a PR, let me know what you think.

  5. github-actions commented on Jul 6, 2023

    @github-actions
    Contributor

    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: Backlog or Status: In Progress, I will leave it alone ... forever!


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

  6. puittenbroek commented on Jul 6, 2023

    @puittenbroek
    ContributorAuthor

    Bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions