Skip to content

Conversation

nadav3396
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Jul 1, 2024

Codecov Report

Attention: Patch coverage is 27.27273% with 16 lines in your changes missing coverage. Please review.

Project coverage is 76.54%. Comparing base (fb27b5a) to head (15f901c).
Report is 2 commits behind head on master.

Files Patch % Lines
agent/src/main/java/io/lumigo/agent/Agent.java 0.00% 9 Missing ⚠️
...tation/impl/AmazonHttpClientV2Instrumentation.java 0.00% 3 Missing ⚠️
...ation/impl/ApacheKafkaConsumerInstrumentation.java 0.00% 1 Missing ⚠️
...ation/impl/ApacheKafkaProducerInstrumentation.java 0.00% 1 Missing ⚠️
...n/impl/AwsLambdaRequestHandlerInstrumentation.java 0.00% 1 Missing ⚠️
...java/io/lumigo/core/parsers/v2/AwsSdkV2Parser.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master      #78      +/-   ##
============================================
- Coverage     78.37%   76.54%   -1.84%     
  Complexity      436      436              
============================================
  Files            49       50       +1     
  Lines          2021     2072      +51     
  Branches        214      217       +3     
============================================
+ Hits           1584     1586       +2     
- Misses          357      406      +49     
  Partials         80       80              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

return "true".equalsIgnoreCase(value);
}

public static boolean isAutoTrace() {
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 want to inject the jar only when we use autoTrace

Context.ModifyHttpRequest context, ExecutionAttributes executionAttributes) {
try {
SdkHttpRequest.Builder requestBuilder = context.httpRequest().toBuilder();
requestBuilder.appendHeader("X-Amzn-Trace-Id", spansContainer.getPatchedRoot());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We dont need to inject traceId because its auto injected by aws

### Supported Instrumentation Libraries

- Aws SDK V1
- Aws SDK V1 (Supported only from dependency and not from the auto trace with lambda layer)
Copy link

Choose a reason for hiding this comment

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

can we somehow know it and print it as warn?
I mean, if the sdk1 exist, and we were imported with a layer

Comment on lines 49 to 50
if (isAutoTrace()) {
installTracerJar(inst);
Copy link

Choose a reason for hiding this comment

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

must this be executed lastly?
because it seems not pure/ not dry

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.

2 participants