Skip to content

Conversation

@agarbutt
Copy link
Contributor

@agarbutt agarbutt commented Apr 6, 2020

Support for #18

@jeffalder
Copy link
Contributor

Hi @agarbutt , Thanks for the contribution! I'm going to take a look at this.

Copy link
Contributor

@jeffalder jeffalder left a comment

Choose a reason for hiding this comment

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

1 - please ensure the license header is present on all added files
2 - check the use of AtomicBoolean

looks good otherwise.

.optionallyWithTag(
"aws.lambda.eventSource.arn", EventSourceParser.parseEventSourceArn(input))
.optionallyWithTag(
"aws.lambda.coldStart", TracingRequestHandler.isColdStart.getAndSet(false))
Copy link
Contributor

Choose a reason for hiding this comment

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

This is the only isColdStart referenced any longer. Should it simply be an static AtomicBoolean on this class?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great catch! This is a bad refactoring. See my updated commit.

@jasonjkeller
Copy link
Contributor

jasonjkeller commented Apr 6, 2020

We should also update the AWS Lambda Tracer to support OpenTracing 0.33 in conjunction with this PR for the SDK. https://newrelic.atlassian.net/browse/JAVA-5898

agarbutt added 2 commits April 6, 2020 15:45
- Corrected a bad refactoring referencing `isColdStart`
- Added Copyright headers.
@agarbutt
Copy link
Contributor Author

agarbutt commented Apr 6, 2020

Thanks for the feedback @jeffalder. I believe I have addressed the concerns you raised.

I'd be happy to help contribute, if that would be helpful, @jasonjkeller

@jeffalder
Copy link
Contributor

We'll have to ship an update to the other side of this to match up OT versions.

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