Skip to content

Conversation

vaibhavrajsingh2001
Copy link
Contributor

Summary

  • migrate to Traces v1 API:
    • attributes are now simple objects instead of array of object. Now in the attributes object, key is attribute name and value is the actual value (no more unwrapAnyValue needed to get the actual value)
    • Trace now has a resource_spans field (which is an array of spans) instead of batches
      • refactored mergeSpansInTraceBatches to mergeSpansInTrace on account of the above removal
    • casing of fields has changed from camelCase to snake_case
    • all timestamps are strings now, so added handling for stringBigInt conversion before calculations
  • add @kong/sdk-konnect-js-internal as a dev dependency for using types
  • update fixture for playground

Jira ticket: https://konghq.atlassian.net/browse/KHCP-16625

@vaibhavrajsingh2001 vaibhavrajsingh2001 marked this pull request as draft June 10, 2025 13:54
},
"peerDependencies": {
"@kong/kongponents": "9.30.0",
"@kong/sdk-konnect-js-internal": "^0.6.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: why is this a peerDependency?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like you're just utilizing type imports from the package? If that's the case this only needs to be included in devDependencies as it will be compiled away at build time

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yepp, just using it for types. Will remove it from peerDependencies when I open the PR on shared-ui. Will be closing this PR then.

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