Skip to content

Conversation

@nirsky
Copy link
Contributor

@nirsky nirsky commented Mar 11, 2021

Which problem is this PR solving?

Short description of the changes

  • Safely access constructor.name, in case object doesn't have a custructor.

@codecov
Copy link

codecov bot commented Mar 11, 2021

Codecov Report

Merging #2009 (cec678f) into main (cc9f1d2) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #2009   +/-   ##
=======================================
  Coverage   92.92%   92.92%           
=======================================
  Files         152      152           
  Lines        5924     5924           
  Branches     1245     1245           
=======================================
  Hits         5505     5505           
  Misses        419      419           
Impacted Files Coverage Δ
...ges/opentelemetry-instrumentation-http/src/http.ts 95.51% <100.00%> (ø)

Copy link
Member

@naseemkullah naseemkullah left a comment

Choose a reason for hiding this comment

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

lgtm but would be nice to add a test or comment since TS does not catch this

@nirsky
Copy link
Contributor Author

nirsky commented Mar 11, 2021

Added a test

@vmarchaud vmarchaud merged commit d6e9654 into open-telemetry:main Mar 12, 2021
@nirsky nirsky deleted the patch-1 branch March 12, 2021 08:59
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.

HTTP Instrumentation: crash under specific usage

6 participants