Skip to content

CXXCBC-55: External Tracing and Metrics support #228

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

Merged
merged 4 commits into from
Jul 20, 2022
Merged

CXXCBC-55: External Tracing and Metrics support #228

merged 4 commits into from
Jul 20, 2022

Conversation

davidkelly
Copy link
Contributor

Motivation

Allow clients to plug in their own tracing and/or metrics solutions,
such as OpenTelemetry

Modifications

Expose the tracer and meter in cluster_options. Then, add a parent_span
to many (but for now, not all) requests. The tests use a simple tracer
and meter implementation to facilitate testing.

*** Will update this with a header that wraps OpenTelemetry objects in
particular, which will not be referenced by anything in the client so we
will only require otel when it is used.

Results

Tests pass

Motivation
==========
Allow clients to plug in their own tracing and/or metrics solutions,
such as OpenTelemetry

Modifications
=============
Expose the tracer and meter in cluster_options.  Then, add a parent_span
to many (but for now, not all) requests.   The tests use a simple tracer
and meter implementation to facilitate testing.

*** Will update this with a header that wraps OpenTelemetry objects in
particular, which will not be referenced by anything in the client so we
will only require otel when it is used.

Results
=======
Tests pass
@avsej
Copy link
Member

avsej commented Jul 20, 2022

@davidkelly looks like Jenkins failures are legit and related to tracer and meter:

http://sdk.jenkins.couchbase.com/job/c-cpp/job/cxx/job/cxx-scripted-build-pipeline/1197/

/home/couchbase/jenkins/workspace/c-cpp/cxx/cxx-scripted-build-pipeline/ws_centos7/couchbase-cxx-client/test/test_integration_tracer.cxx:189: FAILED:
due to a fatal error condition:
  SIGABRT - Abort (abnormal termination) signal
/home/couchbase/jenkins/workspace/c-cpp/cxx/cxx-scripted-build-pipeline/ws_centos7/couchbase-cxx-client/test/test_integration_meter.cxx:120: FAILED:
due to a fatal error condition:
  SIGABRT - Abort (abnormal termination) signal

@davidkelly davidkelly requested a review from avsej July 20, 2022 18:03
@avsej avsej merged commit 481382f into main Jul 20, 2022
@avsej avsej deleted the dk/cxxcbc-55 branch July 20, 2022 18:03
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