Move KeyValueIterable and KeyValueIterableView from trace to common#363
Merged
Conversation
lalitb
approved these changes
Oct 15, 2020
|
|
||
| std::map<std::string, std::string> labels = {{"Key", "Value"}}; | ||
| auto labelkv = opentelemetry::trace::KeyValueIterableView<decltype(labels)>{labels}; | ||
| auto labelkv = opentelemetry::common::KeyValueIterableView<decltype(labels)>{labels}; |
Member
There was a problem hiding this comment.
Not related to this PR, but seems we need to be consistent with the scope resolution usage - either use opentelemetry::common::KeyValueIterableView or common::KeyValueIterableView.
Nothing wrong with this PR thought. This needs to be fixed as separate PR for all such entities.
Contributor
Author
There was a problem hiding this comment.
Thanks for the feedback! I've filed an issue for this here: #368
pyohannes
approved these changes
Oct 15, 2020
Member
|
CLA is broken today. |
maxgolov
approved these changes
Oct 16, 2020
ThomsonTan
approved these changes
Oct 16, 2020
Contributor
|
There's also something with GitHub actions runner being unable to fetch packages (totally unrelated to this PR). |
Member
|
@xukaren please rebase to the latest master branch. |
d027b01 to
3f73296
Compare
Contributor
Author
|
Rebased! |
GerHobbelt
pushed a commit
to GerHobbelt/opentelemetry-cpp
that referenced
this pull request
Aug 31, 2025
…up-buildx-action-3.x Update docker/setup-buildx-action action to v3.11.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A simple PR based on this comment from @maxgolov.
Since
KeyValueIterableis used by metrics, traces, and possibly later on by logs, it would be better if it belonged to the “common” namespace as it is no longer exclusive to being used for “trace”.In this PR,
KeyValueIterableand its derived classKeyValueIterableView, are refactored from namespacetrace::*tocommon::*and their corresponding*.hfiles are moved fromapi/.../tracetoapi/.../common.cc @alolita