Module: Legion::Extensions::Llm::Openai::DiscoveryIdentity

Included in:
Actor::DiscoveryRefresh
Defined in:
lib/legion/extensions/llm/openai/discovery_identity.rb

Overview

Secondary physical-id derivation for DiscoveryRefresh. Extracted to keep the main class within Metrics limits.

The instance IDENTITY is the operator's CONFIG NAME (InstanceKey.instance_id) — the key the router uses for settings lookups (instances.) and per-instance tuning. The derived host:port/credential-fingerprint value is the SECONDARY physical id (InstanceKey.physical_id): it identifies the exact endpoint + credential that can independently become unavailable, and is kept for dedup and diagnostics. It is never the identity — two config names pointing at the same endpoint stay distinct instances.