Implement endpoint profiling#3015
Merged
Merged
Conversation
This comment has been minimized.
This comment has been minimized.
kevingosse
force-pushed
the
kevin/endpoint_aggregation2
branch
from
August 23, 2022 09:03
0867ffe to
1e4725a
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
kevingosse
force-pushed
the
kevin/endpoint_aggregation2
branch
2 times, most recently
from
August 26, 2022 12:19
d43987a to
b329aa3
Compare
This comment has been minimized.
This comment has been minimized.
kevingosse
marked this pull request as ready for review
August 26, 2022 13:53
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
dromanol
reviewed
Aug 30, 2022
dromanol
approved these changes
Aug 30, 2022
dromanol
left a comment
Contributor
There was a problem hiding this comment.
LGTM as far as I can reach (that is not much).
andrewlock
reviewed
Aug 30, 2022
andrewlock
left a comment
Member
There was a problem hiding this comment.
I only looked at the c# part, a few small questions
chrisnas
reviewed
Aug 30, 2022
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
kevingosse
force-pushed
the
kevin/endpoint_aggregation2
branch
from
August 30, 2022 18:29
520872d to
617c637
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
kevingosse
force-pushed
the
kevin/endpoint_aggregation2
branch
from
August 31, 2022 08:53
67afcdb to
4db93d7
Compare
Member
Benchmarks Report 🐌Benchmarks for #3015 compared to master:
The following thresholds were used for comparing the benchmark speeds:
Allocation changes below 0.5% are ignored. Benchmark detailsBenchmarks.Trace.AgentWriterBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AppSecBodyBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AspNetCoreBenchmark - Unknown 🤷 Same allocations ✔️Raw results
Benchmarks.Trace.DbCommandBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.ElasticsearchBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.GraphQLBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.HttpClientBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.ILoggerBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.Log4netBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.NLogBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.RedisBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.SerilogBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.SpanBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.TraceAnnotationsBenchmark - Same speed ✔️ Same allocations ✔️Raw results
|
Member
Code Coverage Report 📊✔️ Merging #3015 into master will not change line coverage
View the full report for further details: Datadog.Trace Breakdown ✔️
The following classes have significant coverage changes.
View the full reports for further details: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR depends on DataDog/libdatadog#33
Summary of changes
Decorate the profiler samples with the endpoint of the active trace, if any.
Implementation details
The tracer sends the resource name to the profiler when closing a root span of type web. When that happens, the profiler calls libdatadog to associate the id of root span to the given resource name.
Test coverage
Unit test on the tracer side to make sure the p/invoke is called when a root web span is closed.
Integration test on the profiler side to make sure everything works properly.