Skip to content

Cache OTel instruments appear defined but not registered via registerInstruments #29

@joyita07

Description

@joyita07

Hi,

I’m using groupcache-go with a custom OpenTelemetry MeterProvider.

I can see group-level metrics being exported successfully (gets, hits, loads, peer loads, etc.), which suggests the instrumentation registration path (registerInstruments) is working and being invoked during instance initialization.

However, I’m not seeing any cache-level metrics exported, even though:

This suggests that cache-level instrumentation exists but may not be wired into the registration path (e.g. via registerInstruments).

Is this omission intentional? If not, should newCacheInstruments be invoked as part of registerInstruments so cache-level stats (including evictions and rejected entries) are observable via OTel?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions