OXIESEC PANEL
- Current Dir:
/
/
opt
/
go
/
pkg
/
mod
/
go.opentelemetry.io
/
otel@v1.14.0
Server IP: 191.96.63.230
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/24/2023 02:03:56 PM
rwxr-xr-x
📄
.gitattributes
89 bytes
10/24/2023 02:03:56 PM
r--r--r--
📁
.github
-
10/24/2023 02:03:56 PM
r-xr-xr-x
📄
.gitignore
328 bytes
10/24/2023 02:03:56 PM
r--r--r--
📄
.gitmodules
147 bytes
10/24/2023 02:03:56 PM
r--r--r--
📄
.golangci.yml
9.2 KB
10/24/2023 02:03:56 PM
r--r--r--
📄
.lycheeignore
298 bytes
10/24/2023 02:03:56 PM
r--r--r--
📄
.markdownlint.yaml
309 bytes
10/24/2023 02:03:56 PM
r--r--r--
📄
CHANGELOG.md
159.07 KB
10/24/2023 02:03:56 PM
r--r--r--
📄
CODEOWNERS
542 bytes
10/24/2023 02:03:56 PM
r--r--r--
📄
CONTRIBUTING.md
15.82 KB
10/24/2023 02:03:56 PM
r--r--r--
📄
LICENSE
11.09 KB
10/24/2023 02:03:56 PM
r--r--r--
📄
Makefile
7.63 KB
10/24/2023 02:03:56 PM
r--r--r--
📄
README.md
5.29 KB
10/24/2023 02:03:56 PM
r--r--r--
📄
RELEASING.md
5 KB
10/24/2023 02:03:56 PM
r--r--r--
📄
VERSIONING.md
10.73 KB
10/24/2023 02:03:56 PM
r--r--r--
📁
attribute
-
10/24/2023 02:03:56 PM
r-xr-xr-x
📁
baggage
-
10/24/2023 02:03:56 PM
r-xr-xr-x
📁
codes
-
10/24/2023 02:03:56 PM
r-xr-xr-x
📄
doc.go
1.46 KB
10/24/2023 02:03:56 PM
r--r--r--
📄
error_handler.go
1.37 KB
10/24/2023 02:03:56 PM
r--r--r--
📁
exporters
-
10/24/2023 02:03:56 PM
r-xr-xr-x
📄
get_main_pkgs.sh
1.22 KB
10/24/2023 02:03:56 PM
r--r--r--
📄
go.mod
425 bytes
10/24/2023 02:03:56 PM
r--r--r--
📄
go.sum
2.05 KB
10/24/2023 02:03:56 PM
r--r--r--
📄
handler.go
2.97 KB
10/24/2023 02:03:56 PM
r--r--r--
📄
handler_test.go
5.24 KB
10/24/2023 02:03:56 PM
r--r--r--
📁
internal
-
10/24/2023 02:03:56 PM
r-xr-xr-x
📄
internal_logging.go
867 bytes
10/24/2023 02:03:56 PM
r--r--r--
📄
internal_logging_test.go
825 bytes
10/24/2023 02:03:56 PM
r--r--r--
📁
propagation
-
10/24/2023 02:03:56 PM
r-xr-xr-x
📄
propagation.go
1.13 KB
10/24/2023 02:03:56 PM
r--r--r--
📁
semconv
-
10/24/2023 02:03:56 PM
r-xr-xr-x
📄
trace.go
1.58 KB
10/24/2023 02:03:56 PM
r--r--r--
📄
trace_test.go
1.13 KB
10/24/2023 02:03:56 PM
r--r--r--
📄
verify_examples.sh
2.33 KB
10/24/2023 02:03:56 PM
r--r--r--
📄
version.go
759 bytes
10/24/2023 02:03:56 PM
r--r--r--
📄
version_test.go
1.08 KB
10/24/2023 02:03:56 PM
r--r--r--
📄
versions.yaml
2.42 KB
10/24/2023 02:03:56 PM
r--r--r--
📁
website_docs
-
10/24/2023 02:03:56 PM
r-xr-xr-x
Editing: trace.go
Close
// Copyright The OpenTelemetry Authors // // 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. package otel // import "go.opentelemetry.io/otel" import ( "go.opentelemetry.io/otel/internal/global" "go.opentelemetry.io/otel/trace" ) // Tracer creates a named tracer that implements Tracer interface. // If the name is an empty string then provider uses default name. // // This is short for GetTracerProvider().Tracer(name, opts...) func Tracer(name string, opts ...trace.TracerOption) trace.Tracer { return GetTracerProvider().Tracer(name, opts...) } // GetTracerProvider returns the registered global trace provider. // If none is registered then an instance of NoopTracerProvider is returned. // // Use the trace provider to create a named tracer. E.g. // // tracer := otel.GetTracerProvider().Tracer("example.com/foo") // // or // // tracer := otel.Tracer("example.com/foo") func GetTracerProvider() trace.TracerProvider { return global.TracerProvider() } // SetTracerProvider registers `tp` as the global trace provider. func SetTracerProvider(tp trace.TracerProvider) { global.SetTracerProvider(tp) }