Open andrewhowdencom opened 4 years ago
For libraries, there should be:
api.go
main.go
New()
With...
doc.go
api.go should include:
Version
Name
Libraries should use the OpenTelemetry to express diagnostic information.The library should instantiate the tracer as:
provider.Tracer(Version, Name)
For libraries, there should be:
api.go
-- Define the public APImain.go
-- Define the library impl entrypoints. For libraries this will usually be aNew()
method with a series ofWith...
for configuration optionsdoc.go
. See example at https://golang.org/src/encoding/gob/doc.goapi.go
should include:Version
- A semver variable describing the library versionName
- A URI describing the library locationLibraries should use the OpenTelemetry to express diagnostic information.The library should instantiate the tracer as: