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

change trace.WithAttributes to append values instead of replacing #315

Merged
merged 4 commits into from
Nov 14, 2019
Merged

change trace.WithAttributes to append values instead of replacing #315

merged 4 commits into from
Nov 14, 2019

Conversation

paivagustavo
Copy link
Member

Fixes #309.

Copy link
Contributor

@rghetia rghetia left a comment

Choose a reason for hiding this comment

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

minor nit about the doc. LGTM otherwise.

@@ -206,7 +206,7 @@ func WithStartTime(t time.Time) SpanOption {
// data about the span.
func WithAttributes(attrs ...core.KeyValue) SpanOption {
Copy link
Contributor

Choose a reason for hiding this comment

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

can you please update the doc to indicate that multiple call to WithAttribute will appends the attributes? or something along the line.

Copy link
Member Author

Choose a reason for hiding this comment

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

updated :)

@lizthegrey lizthegrey merged commit 1fd93b2 into open-telemetry:master Nov 14, 2019
@paivagustavo paivagustavo deleted the change-with-attributes-to-append branch November 22, 2019 03:19
hstan referenced this pull request in hstan/opentelemetry-go Oct 15, 2020
…alTLS Test (#315)

* Add static ECSDA cert files, cert generator script, and update auth_test

* Add new line and comment to cert generation script

* Remove extra new line from comment

* Add test for generated certs and fix file names

* Change key generation to ecdsa p256

* Run certificate generator script to retry CI tests

* Remove static certificate files and bash script

* Update comment to retry tests

* Update comment to retry tests
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.

Bug: WithAttributes should append instead of replacing attributes
4 participants