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

Rd 7813 go tracer flaky unit test testlambdahandlere2elocal ctxhttp tra #29

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

nirLumigo
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Apr 12, 2022

Codecov Report

Merging #29 (271db67) into master (5b745ca) will decrease coverage by 1.85%.
The diff coverage is 55.55%.

❗ Current head 271db67 differs from pull request most recent head babfed4. Consider uploading reports for the commit babfed4 to get more accurate results

@@            Coverage Diff             @@
##           master      #29      +/-   ##
==========================================
- Coverage   74.05%   72.19%   -1.86%     
==========================================
  Files           7        7              
  Lines         424      446      +22     
==========================================
+ Hits          314      322       +8     
- Misses         64       73       +9     
- Partials       46       51       +5     
Impacted Files Coverage Δ
tracer.go 90.90% <ø> (ø)
transport.go 75.00% <50.00%> (-11.21%) ⬇️
exporter.go 58.33% <64.28%> (-2.39%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5b745ca...babfed4. Read the comment docs.

Copy link
Contributor Author

@nirLumigo nirLumigo left a comment

Choose a reason for hiding this comment

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

Nice! :)
Notice that there is a decrease of the coverage, maybe there is a missing test.

exporter.go Outdated Show resolved Hide resolved
exporter.go Outdated Show resolved Hide resolved
exporter.go Outdated Show resolved Hide resolved
exporter.go Show resolved Hide resolved
exporter.go Outdated Show resolved Hide resolved
transport.go Show resolved Hide resolved
transport.go Outdated Show resolved Hide resolved
transport.go Outdated Show resolved Hide resolved
transport.go Outdated Show resolved Hide resolved
wrapper_test.go Outdated Show resolved Hide resolved
transport.go Outdated Show resolved Hide resolved
Copy link
Contributor Author

@nirLumigo nirLumigo left a comment

Choose a reason for hiding this comment

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

Nice! :)

exporter_test.go Outdated Show resolved Hide resolved
assert.NoError(e.T(), err)
assert.Equal(e.T(), 4, len(spans.endFileSpans))
assert.NoError(e.T(), deleteAllFiles())
cfg.MaxSizeForRequest = oldConfig
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you move it to afterEach or beforeEach?

exporter_test.go Show resolved Hide resolved
config_test.go Show resolved Hide resolved
exporter_test.go Outdated Show resolved Hide resolved
wrapper.go Outdated Show resolved Hide resolved
wrapper.go Outdated
//Format details
func (s *LogFormatter) Format(entry *log.Entry) ([]byte, error) {
timestamp := time.Now().Local().Format("2006-01-02 15:04:05")
msg := fmt.Sprintf("#LUMIGO#-%s-%s-message:%s ", timestamp, strings.ToUpper(entry.Level.String()), entry.Message)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are you sure that it keeps the previous format? Can you send me an image of an example of the new log?

Copy link

Choose a reason for hiding this comment

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

#LUMIGO# 2022-04-14 16:27:22-ERROR message:unable to fetch Amazon Trace ID

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image
We don't have the "message" in the other tracers and it i looks a bit different, check the image

wrapper.go Outdated Show resolved Hide resolved
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