-
Notifications
You must be signed in to change notification settings - Fork 445
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
feat: store tracer configuration in an in-memory file #3171
base: main
Are you sure you want to change the base?
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 5364 Passed, 73 Skipped, 1m 55.5s Total Time |
BenchmarksBenchmark execution time: 2025-02-19 13:17:53 Comparing candidate commit 7bb75db in PR branch Found 1 performance improvements and 1 performance regressions! Performance is the same for 60 metrics, 0 unstable metrics. scenario:BenchmarkOTelApiWithCustomTags/datadog_otel_api-24
scenario:BenchmarkSetTagStringer-24
|
9ba3247
to
f6a9d79
Compare
ddtrace/tracer/tracer.go
Outdated
|
||
metadata := TracerMetadata{ | ||
SchemaVersion: 1, | ||
RuntimeId: "TBD", ///< Where to get it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need guidance here on how to get this the runtimeID.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
globalconfig.RuntimeID()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed in 7bb75db
ddtrace/tracer/tracer.go
Outdated
SchemaVersion: 1, | ||
RuntimeId: "TBD", ///< Where to get it? | ||
Language: "golang", | ||
Version: "1.2.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the tracer's version, it's in internal/version.Tag
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed in 7bb75db
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you provide some context? What's the goal and intended use case for storing the config in an in-memory file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should implement testing for this covering the different situations. You can use runtime.GOOS == "linux"
to run the test only in Linux.
ddtrace/tracer/tracer.go
Outdated
|
||
metadata := TracerMetadata{ | ||
SchemaVersion: 1, | ||
RuntimeId: "TBD", ///< Where to get it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
globalconfig.RuntimeID()
ddtrace/tracer/tracer.go
Outdated
SchemaVersion: 1, | ||
RuntimeId: "TBD", ///< Where to get it? | ||
Language: "golang", | ||
Version: "1.2.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the tracer's version, it's in internal/version.Tag
.
What does this PR do?
This is PR store the tracer configuration in an memfd file.
APMAPI-1070
Motivation
Process Discovery.
Note to reviewers
Sorry, I am not well-versed in Go. Please feel free to take over the pull request to ensure it aligns more closely with idiomatic practices and fits better within the codebase.
Reviewer's Checklist
v2-dev
branch and reviewed by @DataDog/apm-go.Unsure? Have a question? Request a review!