conjur-opentelemetry-tracer

module
v0.0.1-649 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2022 License: Apache-2.0

README

conjur-opentelemetry-tracer

A companion library for OpenTelemetry to provide tracing support for Conjur components in a consistent fashion. Defines output providers for Jaeger, Console, and Noop.

Certification level

TODO: Select the appropriate certification level section below, and remove all others.

{Community}

This repo is a Community level project. It's a community contributed project that is not reviewed or supported by CyberArk. For more detailed information on our certification levels, see our community guidelines.

{Trusted}

This repo is a Trusted level project. It's been reviewed by CyberArk to verify that it will securely work with Conjur Open Source as documented. For more detailed information on our certification levels, see our community guidelines.

{Certified}

This repo is a Certified level project. It's been reviewed by CyberArk to verify that it will securely work with CyberArk Conjur Enterprise as documented. In addition, CyberArk offers Enterprise-level support for these features. For more detailed information on our certification levels, see our community guidelines.

Requirements

TODO: Add any requirements that apply to your project here. Which Conjur Open Source / Enterprise versions is it compatible with? Does it integrate with other tools / projects - and if so, what versions of those does it require?

Usage instructions


tp, _ := trace.NewTracerProvider(trace.ConsoleProviderType, "", os.Stdout, true)
defer tp.Shutdown()

tracer := tp.Tracer("my-service")

ctx, span := tracer.Start(context.Background(), "My process")
defer span.End()

// Do some task

if err != nil {
   span.RecordErrorAndSetStatus(err)
}

Contributing

We welcome contributions of all kinds to this repository. For instructions on how to get started and descriptions of our development workflows, please see our contributing guide.

License

Copyright (c) 2022 CyberArk Software Ltd. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

For the full license text see LICENSE.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL