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

[server] Add trace properties to the Trace instance #82

Conversation

bhufmann
Copy link
Contributor

Cherry-pick from 2021-06 branch. See PR #79 for review.


The purpose of this commit is to get the trace properties using tsp. The "properties" attribute will be in the trace instance, and it will be filled if the opened trace implements ITmfPropertiesProviders.

Example:
{
"name": "string",
"path": "string",
"nbEvents": 0,
"start": 0,
"indexingStatus": "RUNNING",
"end": 0,
"properties":
{
"hostname": "qemu1",
"clock_offset": "1450192743562703624"
},
"UUID": "f50af7e0-0dd5-4361-ab96-2e04f7bc7e30"
}

[Added] "properties" field in the returned Trace instance [Added] a separate trace instrance will be created when "/traces" is queried [Changed] /experiment endpoint will use Trace.from(ITmfTrace) to get more info of the trace

The purpose of this commit is to get the trace properties using
tsp. The "properties" attribute will be in the trace instance,
and it will be filled if the opened trace implements
ITmfPropertiesProviders.

Example:
{
  "name": "string",
  "path": "string",
  "nbEvents": 0,
  "start": 0,
  "indexingStatus": "RUNNING",
  "end": 0,
  "properties":
  {
	"hostname": "qemu1",
        "clock_offset": "1450192743562703624"
  },
  "UUID": "f50af7e0-0dd5-4361-ab96-2e04f7bc7e30"
}

[Added] "properties" field in the returned Trace instance
[Added] a separate trace instrance will be created when "/traces" is queried
[Changed] /experiment endpoint will use Trace.from(ITmfTrace) to get more info of the trace

Signed-off-by: Siwei Zhang <[email protected]>
@bhufmann bhufmann merged commit f5f4b6b into eclipse-tracecompass-incubator:master Sep 26, 2024
2 checks passed
@bhufmann bhufmann deleted the traceproperties-cherry-pick branch September 26, 2024 15:43
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