v2check

command module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0, BSD-3-Clause Imports: 2 Imported by: 0

README

v2 Migration Tool

Features

The migration tool will allow a simplified process to upgrade your tracing code from dd-trace-go version 1.6x to v2.0. By running this tool, you will be able to make quick fixes for:

  • Changing import URLs from dd-trace-go.v1 to dd-trace-go/v2.
  • Importing and using the certain types from ddtrace/tracer rather than from ddtrace.
  • Calling Span and SpanContext using pointers.
  • Replacing WithServiceName(), which is no longer supported, with WithService() calls.
  • Using TraceIDLower() to get an uint64 Trace ID instead of TraceID().

For other necessary fixes, refer to our documentation for more information.

Running the Tool

Use the migration tool by running:

go install github.com/DataDog/dd-trace-go/tools/v2check
# In your repository's directory
v2check .

Further Reading

For more information about migrating to v2, go to:

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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