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

add dd trace #851

Merged
merged 2 commits into from
Oct 4, 2023
Merged

add dd trace #851

merged 2 commits into from
Oct 4, 2023

Conversation

shunjizhan
Copy link
Collaborator

@shunjizhan shunjizhan commented Oct 2, 2023

Change

removed legacy dd codes, and added dd trace to 2 levels of calls:

  • top level eth rpc calls (eth_xxx)
  • second level method calls (provider.xxx`)

For now almost all second levels calls are tracked, just to collect more comprehensive info, and to confirm everything has expected performance.

If these trackings increase cost, we can gradually refine tracking to most essential methods. We can also add more tags to group essential methods

Test

dd was able to trace all requested spans for the dev eth rpc, and show detailed breakdown of each rpc call

Screenshot 2023-10-03 at 17 29 06
Screenshot 2023-10-03 at 17 29 46

https://app.datadoghq.com/apm/traces?query=env%3Abodhi-dev&cols=core_service%2Ccore_resource_name%2Clog_duration%2Clog_http.method%2Clog_http.status_code&graphType=flamegraph&historicalData=true&messageDisplay=inline&query_translation_version=v0&shouldShowLegend=true&sort=time&spanID=4417068852833600411&spanType=all&timeHint=1696325305847&trace=AgAAAYr03gX3rwXWiQAAAAAAAAAYAAAAAEFZcjAzaHpRQUFBaEV2OElGR3c3cS1BdQAAACQAAAAAMDE4YWY0ZGUtMDVmNy00MjZlLWJlMzItNjhlMDg0YzQ2N2Ux&traceID=3377937921660487703&start=1696238987315&end=1696325387315&paused=false

@shunjizhan shunjizhan marked this pull request as ready for review October 3, 2023 09:31
@shunjizhan shunjizhan requested a review from xlc October 3, 2023 09:31
@shunjizhan shunjizhan merged commit 9c1ecd7 into master Oct 4, 2023
@shunjizhan shunjizhan deleted the add-dd-apm branch October 4, 2023 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants