目录
目录README.md

NautilusTelemetry

Swift

NautilusTelemetry is an iOS-oriented Swift package to collect OpenTelemetry data and submit it in OTLP-JSON format to an OpenTelemetry Collector instance. gRPC is not currently supported in order to keep the package size as small as possible. Not all features of OpenTelemetry are supported, and this package should be considered experimental.

Additional utilities include an Swift wrapper for os_unfair_lock, and a wrapper for mach_continuous_time to provide precision timing.

Usage


import NautilusTelemetry

InstrumentationSystem.bootstrap(reporter: ExampleReporter())

    func logResponseComplete() {
        let tracer = InstrumentationSystem.tracer
        tracer.withSpan(name: #function) {
            self.populateLogContext()
            self.loggers.forEach { logger in
                logger.logResponseComplete()
            }
        }
    }

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

关于
127.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号