Skip to content
This repository was archived by the owner on Dec 8, 2025. It is now read-only.

nh-main - #106

Draft
ronilan wants to merge 53 commits into
masterfrom
nh-main
Draft

nh-main#106
ronilan wants to merge 53 commits into
masterfrom
nh-main

Conversation

@ronilan

@ronilan ronilan commented Apr 6, 2022

Copy link
Copy Markdown
Contributor

*** DRAFT *** FOR REVIEW ONLY *** DO NOT MERGE *** DRAFT ***

Overview

This pull request provides the bindings with the functionality required in order to work with liboboe 10.3.x+.

Implementation is using minimal modification approach. No refactoring has been done.

Core Changes

  • Enabled support for liboboe mode 1 (w3c) in bindings (0c62e4f)
    - init options include mode and options updated to version 13.
    - Event::makeFromBuffer accepts either xtrace or traceparent input and acts accordingly.
    - getTraceSettings accepts either xtrace or traceparent input and acts accordingly.
    - getTraceSettings accepts a tracestate as input and passes to oboe tracing decision method.
    - javascript Event.makeFromString (wrapper to Event::makeFromBuffer) accepts either xtrace or traceparent input.
    - Event.toString functionality can generate various formatted outputs in both mode 0 and mode 1.

  • Tightened regex validation of xtrace and traceparent (6a345ac)

  • Updated logic used to decide if a trace has metadata due to api changes introduced in liboboe 10.4.0 and above (617e319)

Additional changes:

Other Changes

Notes:

  • This is a non breaking change (mode 0 is compatible with 10.2.x).
  • This branch tests both mode 0 and mode 1. Released packages use either/or but never both.
  • This branch is being used by https://github.com/appoptics/appoptics-apm-node/tree/nh-main

@ronilan
ronilan force-pushed the nh-main branch 3 times, most recently from 2026e18 to 753e59b Compare April 13, 2022 04:32
@ronilan
ronilan force-pushed the nh-main branch 4 times, most recently from b9ac49d to 79efd90 Compare April 27, 2022 20:57
ronilan added 17 commits July 14, 2022 09:49
…odification approach. no refactoring.

- init options include mode and options updated to version 13.
- Event::makeFromBuffer accepts either xtrace or traceparent input and acts accordingly.
- getTraceSettings accepts either xtrace or traceparent input and acts accordingly.
- getTraceSettings accepts a tracestate as input and passes to oboe tracing decision method. input updated to version 3.
- javascript Event.makeFromString (wrapper to Event::makeFromBuffer) accepts either xtrace or traceparent input and acts accordingly.
- adapted Event.toString functionality can generate various formatted outputs when in mode 1.
ronilan added 28 commits July 14, 2022 09:49
1. Removed all hard coded urls.
2. Use use new standard public environment variables SW_APM_SERVICE_KEY, SW_APM_COLLECTOR to set which servers test run against in mode 1.
3. Added SW_TEST_PROD_SERVICE_KEY environment variable to cover the specific test case of initialization without url in mode 1.
4. Additional tweaks to make mode 0 and mode 1 similar.
…ing and release bucket locations. Updated Docs accordingly.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant