Directories ¶
Path | Synopsis |
---|---|
Package inslogger contains context helpers for log Examples: // initialize base context with default logger with provided trace id ctx, inslog := inslogger.WithTraceField(context.Background(), "TraceID") inslog.Warn("warn") // get logger from context inslog := inslogger.FromContext(ctx) // initalize logger (SomeNewLogger() should return insolar.Logger) inslogger.SetLogger(ctx, SomeNewLogger()) Hints: Use environment variables for log level setup: INSOLAR_LOG_LEVEL=debug INSOLAR_LOG_FORMATTER=text go test ./yourpackage/...
|
Package inslogger contains context helpers for log Examples: // initialize base context with default logger with provided trace id ctx, inslog := inslogger.WithTraceField(context.Background(), "TraceID") inslog.Warn("warn") // get logger from context inslog := inslogger.FromContext(ctx) // initalize logger (SomeNewLogger() should return insolar.Logger) inslogger.SetLogger(ctx, SomeNewLogger()) Hints: Use environment variables for log level setup: INSOLAR_LOG_LEVEL=debug INSOLAR_LOG_FORMATTER=text go test ./yourpackage/... |
Package insmetrics provides helpers for opencesus metrics.
|
Package insmetrics provides helpers for opencesus metrics. |
Package instracer contains helpers for opencesus tracer.
|
Package instracer contains helpers for opencesus tracer. |
introspector provides grpc/rest introspection API endpoint on shared tcp port.
|
introspector provides grpc/rest introspection API endpoint on shared tcp port. |
introproto
Package introproto is a reverse proxy.
|
Package introproto is a reverse proxy. |
Package pprof provides http pprof handlers Examples: curl localhost:9090/debug/pprof/trace?seconds=10 > trace.out For more information about pprof, see https://github.com/google/pprof/blob/master/doc/README.md and https://golang.org/pkg/runtime/pprof/
|
Package pprof provides http pprof handlers Examples: curl localhost:9090/debug/pprof/trace?seconds=10 > trace.out For more information about pprof, see https://github.com/google/pprof/blob/master/doc/README.md and https://golang.org/pkg/runtime/pprof/ |
Click to show internal directories.
Click to hide internal directories.