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

Make maximum amount of spans configurable #460

Merged
merged 9 commits into from Nov 2, 2022

Conversation

fsrv-xyz
Copy link
Contributor

In one of my projects, I need to do performance monitoring for complex tasks with the highest possible accuracy.
Due to some of the tasks are long running, the current const span limit of 1000 per transaction will be not enough.

I saw, that some other SDKs (for example python) have an option for that.

@YaroslavPodorvanov
Copy link
Contributor

I think exists config on server too and user can not change config on server

@fsrv-xyz
Copy link
Contributor Author

fsrv-xyz commented Aug 28, 2022

I have tested on one of our self hosted instances. Works fine with a higher limit (as far as I can check without any settings on Server side).

@cleptric
Copy link
Member

@fsrv-xyz Can you add some tests for this so we get it merged?

@fsrv-xyz
Copy link
Contributor Author

@cleptric Sure. I added some test cases covering the added code (and some additional things).

Copy link
Member

@cleptric cleptric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the CHANGELOG.md as well and add something like

feat: Make maximum amount of spans configurable (#460)

Thanks for your work on this 🙂

span_recorder.go Outdated Show resolved Hide resolved
client.go Outdated Show resolved Hide resolved
span_recorder_test.go Outdated Show resolved Hide resolved
fsrv-xyz and others added 5 commits November 2, 2022 07:15
Co-authored-by: Michi Hoffmann <cleptric@users.noreply.github.com>
Co-authored-by: Michi Hoffmann <cleptric@users.noreply.github.com>
Co-authored-by: Michi Hoffmann <cleptric@users.noreply.github.com>
@fsrv-xyz
Copy link
Contributor Author

fsrv-xyz commented Nov 2, 2022

I applied the changes you suggested and updated the changelog file.

@cleptric cleptric enabled auto-merge (squash) November 2, 2022 09:06
@cleptric cleptric merged commit 5301f85 into getsentry:master Nov 2, 2022
@cleptric cleptric added this to the v0.15.0 milestone Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants