{"modulePath":"github.com/onflow/flow-archive","version":"v0.31.9-decrease-wait-interval","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package trace\n\n## Variables\n\n```go\nvar (\n\tNoopSpan trace.Span = trace.SpanFromContext(context.Background())\n)\n```\n\n## Types\n\n```go\ntype NoopTracer struct{}\n```\nNoopTracer is the implementation of the Tracer interface.\n\n```go\nfunc NewNoopTracer() *NoopTracer\n```\nNewNoopTracer creates a new tracer with no ops\n\n```go\nfunc (t *NoopTracer) Done() \u003c-chan struct{}\n```\nDone returns a channel that will close when shutdown is complete.\n\n```go\nfunc (t *NoopTracer) Ready() \u003c-chan struct{}\n```\nReady returns a channel that will close when the network stack is ready.\n\n```go\nfunc (t *NoopTracer) StartSpanFromContext(\n\tctx context.Context,\n\toperationName SpanName,\n\topts ...trace.SpanStartOption,\n) (context.Context, trace.Span)\n```\n\n```go\ntype SpanName string\n```\n\n```go\nconst (\n\n\t// Archive API\n\tGetFirst                  SpanName = \"archive.getFirst\"\n\tGetLast                   SpanName = \"archive.getLast\"\n\tGetHeightForBlock         SpanName = \"archive.getHeightForBlock\"\n\tGetCommit                 SpanName = \"archive.getCommit\"\n\tGetHeader                 SpanName = \"archive.getHeader\"\n\tGetEvents                 SpanName = \"archive.getEvents\"\n\tGetRegisterValues         SpanName = \"archive.getRegisterValues\"\n\tGetCollection             SpanName = \"archive.getCollection\"\n\tListCollectionsForHeight  SpanName = \"archive.listCollectionsForHeight\"\n\tGetGuarantee              SpanName = \"archive.getGuarantee\"\n\tGetTransaction            SpanName = \"archive.getTransaction\"\n\tGetHeightForTransaction   SpanName = \"archive.getHeightForTransaction\"\n\tListTransactionsForHeight SpanName = \"archive.listTransactionsForHeight\"\n\tGetResult                 SpanName = \"archive.getResult\"\n\tGetSeal                   SpanName = \"archive.getSeal\"\n\tListSealsForHeight        SpanName = \"archive.listSealsForHeight\"\n)\n```\n\n```go\ntype Tracer interface {\n\t// Ready commences startup\n\tReady() \u003c-chan struct{}\n\n\t// Done commences shutdown\n\tDone() \u003c-chan struct{}\n\n\tStartSpanFromContext(\n\t\tctx context.Context,\n\t\toperationName SpanName,\n\t\topts ...otelTrace.SpanStartOption,\n\t) (context.Context, otelTrace.Span)\n}\n```\nTracer interface for tracers in the Archive Node\n\n","path":"github.com/onflow/flow-archive/service/trace","name":"trace","synopsis":"","isRedistributable":true}
