Update Subsegment Type Definitions to Include`namespace`
Closed this issue · 1 comments
mckalexee commented
Background
AWS XRay will consider segments with a namespace
of "remote"
calls to a remote service. This allows the service map show which services are calling the remote service. It also allows you to select the remote service and view traces that called it.
Setting the namespace to "remote"
is also done within this codebase.
The type definition for the Subsegment
class does not contain the property namespace
, meaning TypeScript projects that use this type definition are unable to override the namespace
property.
Proposed Resolution
Add the namespace
property as an optional string to the Subsegment
type definition.
willarmiros commented
Released in 3.3.4