diff --git a/README.md b/README.md index 818d7bc5..36ed020f 100644 --- a/README.md +++ b/README.md @@ -181,7 +181,7 @@ to another server when making a request. Xop currently only supports HTTP and that only with [resty](https://github.com/go-resty/resty) in the xopmiddle package. Adding additional outgoing propagators is an outstanding priority. -### Version compatability +### Version compatibility xop is currently tested with go1.18 and go1.19. It is probably compatible with go1.17 and perhaps earlier. diff --git a/context.go b/context.go index 65f78544..fae48c8b 100644 --- a/context.go +++ b/context.go @@ -139,7 +139,7 @@ func WithDefault(level xopnum.Level) AdjusterOption { } // WithSkippedFrames is needed only if LevelAdjuster or ContextLevelAdjuster -// are called from withing another function that should not be used to +// are called from within another function that should not be used to // derrive the package name. func WithSkippedFrames(additionalFramesToSkip int) AdjusterOption { return func(o *adjustOptions) { diff --git a/sub.zzzgo b/sub.zzzgo index 65f9abe9..6b475836 100644 --- a/sub.zzzgo +++ b/sub.zzzgo @@ -10,7 +10,7 @@ import ( "github.com/xoplog/xop-go/xopnum" ) -// Sub holds an ephermal state of a log being tranformed to a new log. +// Sub holds an ephemeral state of a log being tranformed to a new log. type Sub struct { detached bool settings LogSettings diff --git a/trace/trace.go b/trace/trace.go index 68be4389..a23e4e28 100644 --- a/trace/trace.go +++ b/trace/trace.go @@ -10,7 +10,7 @@ import ( // See https://www.w3.org/TR/trace-context/ and // https://github.com/w3c/trace-context/blob/main/spec/30-processing-model.md // -// The spec has some unfortuante side-effects. The spec doesn't require the +// The spec has some unfortunate side-effects. The spec doesn't require the // "traceresponse" header except when the trace-id is discarded. That means that // parent requests do not have enough information to directly link to child // requests. diff --git a/xopat/enum.go b/xopat/enum.go index ebcae760..acbd77cc 100644 --- a/xopat/enum.go +++ b/xopat/enum.go @@ -35,7 +35,7 @@ type IotaEnumAttribute struct { // method to add span-level metadata. It encapsulates both the attribute // name and the attribute value in a single argument. // -// EmbeddedEnum values can be construted with a EmbeddedEnumAttribute or +// EmbeddedEnum values can be constructed with a EmbeddedEnumAttribute or // with an IotaEnumAttribute. type EmbeddedEnum interface { EnumAttribute() *EnumAttribute diff --git a/xopbase/base.zzzgo b/xopbase/base.zzzgo index 45ec3957..7ab136ed 100644 --- a/xopbase/base.zzzgo +++ b/xopbase/base.zzzgo @@ -84,7 +84,7 @@ type Span interface { // ID must return the same string as the Logger it came from ID() string - // TODO: Guage() + // TODO: Gauge() // TODO: Event() NoPrefill() Prefilled @@ -94,7 +94,7 @@ type Span interface { // Done is called when (1) log.Done is called on the log corresponding // to this span; (2) log.Done is called on a parent log of the log // corresponding to this span, and the log is not Detach()ed; or - // (3) preceeding Flush() if there has been logging activity since the + // (3) preceding Flush() if there has been logging activity since the // last call to Flush(), Done(), or the start of the span. // // final is true when the log is done, it is false when Done is called diff --git a/xopconst/standard.go b/xopconst/standard.go index dc2f19c6..8bd19dee 100644 --- a/xopconst/standard.go +++ b/xopconst/standard.go @@ -1,4 +1,4 @@ -// xopconst provides pre-registed standard attributes for describing spans +// xopconst provides pre-registered standard attributes for describing spans package xopconst import ( diff --git a/xoputil/fromphu.go b/xoputil/fromphu.go index d0757d2f..33c3a042 100644 --- a/xoputil/fromphu.go +++ b/xoputil/fromphu.go @@ -2,7 +2,7 @@ package xoputil /* -This file contains code that is direclty copied or derrived from +This contains code that is directly copied or derrived from https://github.com/phuslu/log The original is subject to the following license.