Namespaces allow to identify the product entity that the metric got extracted from, and identify
the use case that the metric belongs to. These namespaces cannot be defined freely, instead they
are defined by Sentry. Over time, there will be more namespaces as we introduce new
metrics-based functionality.
Parsing a metric namespace from strings is infallible. Unknown strings are mapped to
MetricNamespace::Unsupported. Metrics with such a namespace will be dropped.
During ingestion, the metric namespace is validated against a list of known and enabled
namespaces. Metrics in disabled namespaces are dropped during ingestion.
At a later stage, namespaces are used to route metrics to their associated infra structure and
enforce usecase-specific configuration.
Metrics that Relay either doesn’t know or recognize the namespace of will be dropped before
aggregating. For instance, an MRI of c:something_new/foo@none has the namespace
something_new, but as Relay doesn’t support that namespace, it gets deserialized into
this variant.
Relay currently drops all metrics whose namespace ends up being deserialized as
unsupported. We may revise that in the future.