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

Fixed #332 #333

Merged
Merged

Conversation

slinkydeveloper
Copy link
Member

Fixed #332, now the Clone() method copies the extensions map

Signed-off-by: Francesco Guardiani francescoguard@gmail.com

@slinkydeveloper slinkydeveloper added the bug Something isn't working label Mar 3, 2020
@slinkydeveloper slinkydeveloper requested a review from n3wscott March 3, 2020 10:10
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
@n3wscott
Copy link
Member

n3wscott commented Mar 3, 2020

LGTM

Thanks!

@n3wscott
Copy link
Member

n3wscott commented Mar 3, 2020

LGTM

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
@slinkydeveloper slinkydeveloper merged commit 1768405 into cloudevents:master Mar 3, 2020
@slinkydeveloper slinkydeveloper deleted the eventcontext_clone branch March 3, 2020 19:02
ian-mi pushed a commit to ian-mi/sdk-go that referenced this pull request Mar 6, 2020
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
ian-mi pushed a commit to ian-mi/sdk-go that referenced this pull request Mar 6, 2020
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
ian-mi pushed a commit to ian-mi/sdk-go that referenced this pull request Mar 6, 2020
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
n3wscott pushed a commit that referenced this pull request Mar 6, 2020
…351)

* Fixed #332 (#333)

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Clone event context before setting the distributed tracing extension

This prevents the client from mutating the caller's copy of the event
allowing for sharing across multiple clients.

Signed-off-by: Ian Milligan <ianmllgn@gmail.com>

Co-authored-by: Francesco Guardiani <francescoguard@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EventContext.Clone() doesn't perform deep cloning
2 participants