You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[monitor-opentelemetry] fix type checking build error (#34297)
The latest @types/node changes add `string[]` to the
`RequestOptions.headers` type:
DefinitelyTyped/DefinitelyTyped#72617nodejs/node#58049
This PR adds a check and narrow the type to `http.OutgoingHttpHeaders`
before accessing user-agent
property. We don't ever set the user agent header using the `string[]`
form so this should be fine.
0 commit comments