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

Add Recordable implementation for otprotocol exporter #49

Merged
merged 49 commits into from
Apr 6, 2020

Conversation

rnburn
Copy link
Contributor

@rnburn rnburn commented Mar 12, 2020

No description provided.

WORKSPACE Outdated Show resolved Hide resolved
bazel/opentelemetry_proto.BUILD Outdated Show resolved Hide resolved
bazel/opentelemetry_proto.BUILD Show resolved Hide resolved
ci/do_ci.sh Show resolved Hide resolved
sdk/proto/opentelemetry/README Outdated Show resolved Hide resolved
@@ -0,0 +1,28 @@
#include "src/exporter/otprotocol/recordable.h"

OPENTELEMETRY_BEGIN_NAMESPACE
Copy link
Contributor

Choose a reason for hiding this comment

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

Should exporters live in the internal namespace?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I separated out into an exporters folder, similar to how it's done for go and java.

sdk/src/trace/recordable.h Show resolved Hide resolved
WORKSPACE Outdated Show resolved Hide resolved
@@ -44,7 +44,7 @@ jobs:
- run: ./ci/setup_ci_environment.sh
- run: ./ci/install_bazelisk.sh
- run: ./ci/install_gcc48.sh
- run: CC=/usr/bin/g++-4.8 ./ci/do_ci.sh bazel.test
- run: CC=/usr/bin/g++-4.8 ./ci/do_ci.sh bazel.test_api
Copy link
Contributor

Choose a reason for hiding this comment

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

API is gcc 4.8 compatible but SDK is not?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

protobuf can't work with gcc-4.8.

Maybe I should exclude just some portions of the sdk from legacy compiler tests?

Copy link
Contributor

Choose a reason for hiding this comment

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

Up to you. Sorry to hear about protobuf.

@@ -0,0 +1,33 @@
#pragma once

#include "src/trace/recordable.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think headers needed to implement exporters should be placed in sdk/include. However, this can be done in a different PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved Recodable into the headers folder.

@rnburn rnburn merged commit 4ef44ed into open-telemetry:master Apr 6, 2020
@nadiaciobanu nadiaciobanu mentioned this pull request Jul 3, 2020
GerHobbelt pushed a commit to GerHobbelt/opentelemetry-cpp that referenced this pull request Jul 27, 2024
 [SDK] Added reserve for spans array in BatchSpanProcessor. (open-telemetry#2724)
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.

3 participants