-
Notifications
You must be signed in to change notification settings - Fork 150
[Profiler/Tracer] Bump to libdatadog v21 #7560
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
Draft
gleocadie
wants to merge
20
commits into
master
Choose a base branch
from
gleocadie/bump-to-libdatadog-21
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+104
−53
Draft
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
20e3c7e
Bump to libdatadog v21
gleocadie cd0cf78
Bump to libdatadog v22
gleocadie 18fc4df
bump to libdatadog v22.0.1
gleocadie 3ce48b3
TO REMOVE
gleocadie ff7082e
Fix bug in HandsOff config
gleocadie cca2898
[skip ci] fix: update process discovery FFI
dmehala 66a3bd4
Changes according to libdatadog example
gleocadie cb0eba4
Add mising logs field
gleocadie 5d6a026
Enable by default telemetry on mock agent
gleocadie 259caeb
Disable telemetry in trace exporter
hoolioh 101414a
Fix test
hoolioh 03afbf1
Refactor test
hoolioh 5c34c41
Test increasing the timeout
hoolioh a2bf39f
Revert timeout
hoolioh 2c2fdee
Merge branch 'master' into gleocadie/bump-to-libdatadog-21
hoolioh d675393
Bump libdatadog to 22.1.0
hoolioh a9b8f1d
Merge branch 'master' into gleocadie/bump-to-libdatadog-21
hoolioh 990cab3
Merge branch 'master' into gleocadie/bump-to-libdatadog-21
hoolioh f0ef529
Add null terminator to CStrings.
hoolioh 3b52168
Check bounds.
hoolioh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "libdatadog", | ||
| "version-string": "20.0.0", | ||
| "version-string": "22.1.0", | ||
| "description": "Package providing libdatadog prebuilt binaries for Windows only.", | ||
| "dependencies": [] | ||
| } |
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
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
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
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
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
22 changes: 22 additions & 0 deletions
22
tracer/src/Datadog.Trace/LibDatadog/ServiceDiscovery/MetadataKind.cs
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| // <copyright file="MetadataKind.cs" company="Datadog"> | ||
| // Unless explicitly stated otherwise all files in this repository are licensed under the Apache 2 License. | ||
| // This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2017 Datadog, Inc. | ||
| // </copyright> | ||
|
|
||
| #nullable enable | ||
| using System; | ||
|
|
||
| namespace Datadog.Trace.LibDatadog.ServiceDiscovery; | ||
|
|
||
| internal enum MetadataKind : int | ||
| { | ||
| RuntimeId = 0, | ||
| TracerLanguage = 1, | ||
| TracerVersion = 2, | ||
| Hostname = 3, | ||
| ServiceName = 4, | ||
| ServiceEnvironment = 5, | ||
| ServiceVersion = 6, | ||
| ProcessTags = 7, | ||
| ContainerId = 8, | ||
| } |
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
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
Oops, something went wrong.
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.
Check failure
Code scanning / CodeQL
Unvalidated local pointer arithmetic Critical
Copilot Autofix
AI 2 days ago
To fix this problem, the result from the virtual method call (
encoding.GetBytes) must be validated to ensure it is both non-negative and does not exceed the allocated buffer size (maxBytesCount), before using it in pointer arithmetic or memory access operations. In this instance, we should check thatLength >= 0 && Length <= (nuint)maxBytesCountbefore writing the null terminator at*((byte*)Ptr + Length). If the value is outside this range, we should fail by freeing the allocation and settingPtrandLengthappropriately so the struct is left in a valid state and does not attempt an out-of-bounds write. All code changes need to be inside theCString(string? str)constructor in tracer/src/Datadog.Trace/LibDatadog/CString.cs.