mirror of
https://github.com/fosrl/newt.git
synced 2026-03-26 20:46:41 +00:00
fix(metrics): direction=ingress|egress for bytes; remove transport on tunnel_sessions; extend allow-list (msg_type, phase); add units for histograms and bytes; handle callback errors; normalize error_type taxonomy; HTTP error mapping to enums
This commit is contained in:
@@ -119,22 +119,22 @@ func (pm *ProxyManager) SetTunnelID(id string) {
|
||||
site := telemetry.SiteLabelKVs()
|
||||
e.attrInTCP = attribute.NewSet(append(site,
|
||||
attribute.String("tunnel_id", id),
|
||||
attribute.String("direction", "in"),
|
||||
attribute.String("direction", "ingress"),
|
||||
attribute.String("protocol", "tcp"),
|
||||
)...)
|
||||
e.attrOutTCP = attribute.NewSet(append(site,
|
||||
attribute.String("tunnel_id", id),
|
||||
attribute.String("direction", "out"),
|
||||
attribute.String("direction", "egress"),
|
||||
attribute.String("protocol", "tcp"),
|
||||
)...)
|
||||
e.attrInUDP = attribute.NewSet(append(site,
|
||||
attribute.String("tunnel_id", id),
|
||||
attribute.String("direction", "in"),
|
||||
attribute.String("direction", "ingress"),
|
||||
attribute.String("protocol", "udp"),
|
||||
)...)
|
||||
e.attrOutUDP = attribute.NewSet(append(site,
|
||||
attribute.String("tunnel_id", id),
|
||||
attribute.String("direction", "out"),
|
||||
attribute.String("direction", "egress"),
|
||||
attribute.String("protocol", "udp"),
|
||||
)...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user