-
Notifications
You must be signed in to change notification settings - Fork 25
Add Otlp Support #274
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
Open
MatthewKhouzam
wants to merge
12
commits into
eclipse-tracecompass-incubator:master
Choose a base branch
from
MatthewKhouzam:otlp
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.
Open
Add Otlp Support #274
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
239d35c
otlp: Add OTLP trace plugins to Maven build
MatthewKhouzam d20098f
otlp: Add OTLP core plugin to OpenTracing feature
MatthewKhouzam dc74447
otlp: Add native OTLP span data model
MatthewKhouzam 30bc3d9
otlp: Preserve OTLP resource attributes
MatthewKhouzam a885eeb
otlp: Map OTLP span events to Jaeger logs
MatthewKhouzam 29d62f9
otlp: Add protobuf support for OTLP binary trace exports
MatthewKhouzam 0501e6e
otlp: Add OTLP line-delimited JSON (JSONL) support
MatthewKhouzam bfccdbc
otlp: Flatten span events into individual trace events
MatthewKhouzam fa02725
otlp: Add Eclipse project settings and protobuf to target
MatthewKhouzam 6cb0e2b
opentracing: Defer span-close writes for monotonic timestamps
MatthewKhouzam c3004ac
opentracing: Fix span-life data provider for OTLP traces
MatthewKhouzam 58f0989
otlp: Add test traces and span-life state system test
MatthewKhouzam 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
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
15 changes: 15 additions & 0 deletions
15
tracetypes/org.eclipse.tracecompass.incubator.otlp.core.tests/.classpath
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,15 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <classpath> | ||
| <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17"> | ||
| <attributes> | ||
| <attribute name="annotationpath" value="/org.eclipse.tracecompass.incubator.annotations/annotations"/> | ||
| </attributes> | ||
| </classpathentry> | ||
| <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"> | ||
| <attributes> | ||
| <attribute name="annotationpath" value="/org.eclipse.tracecompass.incubator.annotations/annotations"/> | ||
| </attributes> | ||
| </classpathentry> | ||
| <classpathentry kind="src" path="src"/> | ||
| <classpathentry kind="output" path="bin"/> | ||
| </classpath> |
1 change: 1 addition & 0 deletions
1
tracetypes/org.eclipse.tracecompass.incubator.otlp.core.tests/.gitignore
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 @@ | ||
| /bin/ |
28 changes: 28 additions & 0 deletions
28
tracetypes/org.eclipse.tracecompass.incubator.otlp.core.tests/.project
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,28 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <projectDescription> | ||
| <name>org.eclipse.tracecompass.incubator.otlp.core.tests</name> | ||
| <comment></comment> | ||
| <projects> | ||
| </projects> | ||
| <buildSpec> | ||
| <buildCommand> | ||
| <name>org.eclipse.jdt.core.javabuilder</name> | ||
| <arguments> | ||
| </arguments> | ||
| </buildCommand> | ||
| <buildCommand> | ||
| <name>org.eclipse.pde.ManifestBuilder</name> | ||
| <arguments> | ||
| </arguments> | ||
| </buildCommand> | ||
| <buildCommand> | ||
| <name>org.eclipse.pde.SchemaBuilder</name> | ||
| <arguments> | ||
| </arguments> | ||
| </buildCommand> | ||
| </buildSpec> | ||
| <natures> | ||
| <nature>org.eclipse.pde.PluginNature</nature> | ||
| <nature>org.eclipse.jdt.core.javanature</nature> | ||
| </natures> | ||
| </projectDescription> |
20 changes: 20 additions & 0 deletions
20
tracetypes/org.eclipse.tracecompass.incubator.otlp.core.tests/META-INF/MANIFEST.MF
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,20 @@ | ||
| Manifest-Version: 1.0 | ||
| Bundle-ManifestVersion: 2 | ||
| Bundle-Name: %Bundle-Name | ||
| Bundle-Vendor: %Bundle-Vendor | ||
| Bundle-SymbolicName: org.eclipse.tracecompass.incubator.otlp.core.tests | ||
| Bundle-Version: 0.18.0.qualifier | ||
| Bundle-Localization: plugin | ||
| Bundle-RequiredExecutionEnvironment: JavaSE-17 | ||
| Require-Bundle: org.eclipse.core.runtime, | ||
| org.eclipse.core.resources, | ||
| org.eclipse.tracecompass.common.core, | ||
| org.eclipse.tracecompass.incubator.otlp.core, | ||
| org.eclipse.tracecompass.incubator.opentracing.core, | ||
| org.junit, | ||
| org.eclipse.tracecompass.tmf.core, | ||
| org.eclipse.tracecompass.jsontrace.core, | ||
| org.eclipse.tracecompass.statesystem.core, | ||
| org.eclipse.jdt.annotation;bundle-version="[2.0.0,3.0.0)";resolution:=optional | ||
| Export-Package: org.eclipse.tracecompass.incubator.otlp.core.tests | ||
| Automatic-Module-Name: org.eclipse.tracecompass.incubator.otlp.core.tests |
36 changes: 36 additions & 0 deletions
36
tracetypes/org.eclipse.tracecompass.incubator.otlp.core.tests/about.html
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,36 @@ | ||
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | ||
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
| <html xmlns="http://www.w3.org/1999/xhtml"> | ||
| <head> | ||
| <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> | ||
| <title>About</title> | ||
| </head> | ||
| <body lang="EN-US"> | ||
| <h2>About This Content</h2> | ||
|
|
||
| <p>November 30, 2017</p> | ||
| <h3>License</h3> | ||
|
|
||
| <p> | ||
| The Eclipse Foundation makes available all content in this plug-in | ||
| ("Content"). Unless otherwise indicated below, the Content | ||
| is provided to you under the terms and conditions of the Eclipse | ||
| Public License Version 2.0 ("EPL"). A copy of the EPL is | ||
| available at <a href="https://www.eclipse.org/legal/epl-2.0">https://www.eclipse.org/legal/epl-2.0</a>. | ||
| For purposes of the EPL, "Program" will mean the Content. | ||
| </p> | ||
|
|
||
| <p> | ||
| If you did not receive this Content directly from the Eclipse | ||
| Foundation, the Content is being redistributed by another party | ||
| ("Redistributor") and different terms and conditions may | ||
| apply to your use of any object code in the Content. Check the | ||
| Redistributor's license that was provided with the Content. If no such | ||
| license exists, contact the Redistributor. Unless otherwise indicated | ||
| below, the terms and conditions of the EPL still apply to any source | ||
| code in the Content and such source code may be obtained at <a | ||
| href="https://www.eclipse.org/">https://www.eclipse.org</a>. | ||
| </p> | ||
|
|
||
| </body> | ||
| </html> |
18 changes: 18 additions & 0 deletions
18
tracetypes/org.eclipse.tracecompass.incubator.otlp.core.tests/build.properties
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,18 @@ | ||
| ############################################################################### | ||
| # Copyright (c) 2026 Ericsson | ||
| # | ||
| # All rights reserved. This program and the accompanying materials | ||
| # are made available under the terms of the Eclipse Public License 2.0 | ||
| # which accompanies this distribution, and is available at | ||
| # https://www.eclipse.org/legal/epl-2.0 | ||
| # | ||
| # SPDX-License-Identifier: EPL-2.0 | ||
| ############################################################################### | ||
|
|
||
| source.. = src/ | ||
| output.. = bin/ | ||
| bin.includes = META-INF/,\ | ||
| .,\ | ||
| about.html,\ | ||
| plugin.properties,\ | ||
| traces/ |
13 changes: 13 additions & 0 deletions
13
tracetypes/org.eclipse.tracecompass.incubator.otlp.core.tests/plugin.properties
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,13 @@ | ||
| ############################################################################### | ||
| # Copyright (c) 2026 Ericsson | ||
| # | ||
| # All rights reserved. This program and the accompanying materials | ||
| # are made available under the terms of the Eclipse Public License 2.0 | ||
| # which accompanies this distribution, and is available at | ||
| # https://www.eclipse.org/legal/epl-2.0 | ||
| # | ||
| # SPDX-License-Identifier: EPL-2.0 | ||
| ############################################################################### | ||
|
|
||
| Bundle-Vendor = Eclipse Trace Compass Incubator | ||
| Bundle-Name = Trace Compass Incubator OTLP Core Tests Plug-in |
Oops, something went wrong.
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.
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.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: eclipse-tracecompass-incubator/org.eclipse.tracecompass.incubator
Length of output: 30394
🏁 Script executed:
Repository: eclipse-tracecompass-incubator/org.eclipse.tracecompass.incubator
Length of output: 2775
🌐 Web query:
Java PriorityQueue documentation ties broken arbitrarily official💡 Result:
Yes, the official Java documentation for the PriorityQueue class explicitly states that tie-breaking is handled arbitrarily [1][2][3]. Specifically, the documentation notes: "If multiple elements are tied for least value, the head is one of those elements -- ties are broken arbitrarily" [1][4]. This means that the PriorityQueue does not provide a guarantee of stable ordering (such as First-In-First-Out) for elements that have equal priority according to the queue's comparator or their natural ordering [5][6]. If your application requires a deterministic order for tied elements, it is standard practice to incorporate a secondary sorting criterion—such as a sequence number, timestamp, or unique ID—into your Comparator or Comparable implementation [5][6][7].
Citations:
Define a deterministic order for equal-timestamp writes.
DeferredModification.compareTo()compares onlytimestamp. The clear for one log and the value for the next log can share a timestamp and target the samelogQuark.PriorityQueuedoes not define the order of tied elements, so the clear can overwrite the new value. Order clears before values at equal timestamps, then use a sequence number as the final tie-breaker. Add a regression test for consecutive-nanosecond logs.🤖 Prompt for AI Agents