Skip to content

Conversation

mario-launchdarkly
Copy link
Contributor

@mario-launchdarkly mario-launchdarkly commented Oct 1, 2025

  • add scheduler for gather system metrics
  • add cpu usage metrics

Note

Introduce a new system metrics module to periodically record CPU utilization and wire it into Observability; update instrumentation/exporters and headers accordingly.

  • System Metrics (new modules):
    • Add System and SystemLive targets with CPU monitoring: CPUStatistics, SystemInfo, CPULoad, Scheduler, and live facade to periodically record system.cpu.utilization with cpu.logical_number and cpu.mode attributes.
  • Observability integration:
    • ObservabilityClient builds SystemInfo and starts monitoring on init; falls back to SystemInfo.noOp on failure.
    • Extend semantic conventions with LDSemanticAttribute.System keys.
  • Instrumentation/OTel updates:
    • Make Instrumentation.noOp a static value; use non-optional otelTracer and simplify span building.
    • Switch OTLP exporters to .init(config: .init(headers: ...)); update Meter provider views and merge resource attributes into gauge metrics.
  • Plugin/headers:
    • Ensure highlight.project_id is present in customHeaders during registration; enrich resource attributes with SDK version/project id.
  • Package/ExampleApp:
    • Wire new targets (System, SystemLive) into Observability target and Package.swift.
    • Set serviceName in Example app options.

Written by Cursor Bugbot for commit bf4fcb4. This will update automatically on new commits. Configure here.

@mario-launchdarkly mario-launchdarkly requested a review from a team as a code owner October 1, 2025 23:25
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@Vadman97 Vadman97 requested a review from abelonogov-ld October 6, 2025 15:21
@mario-launchdarkly mario-launchdarkly deleted the feature/system-metrics branch October 7, 2025 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant