You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-11-25 22:41:46 +02:00
docs(typos): Run codespell to fix typos (#3980)
* docs(typos): Run codespell to fix typos There were a lot of typos through the repository, so I ran [codespell][], a tool for automatically fixing typos, to fix them. ```console make codespell ``` There's already a tool called [misspell][] that's supposed to take care of this, but misspell hasn't been updated for 6 years, and it doesn't seem to be catching any of the typos that codespell can. [codespell]: https://github.com/codespell-project/codespell [misspell]: https://github.com/client9/misspell * Revert and ignore spelling for Consequentially * Add GH workflow for codespell * Revert GH Workflow and Makefile for codespell Per @pellared, since there's no instructions for setting up codespell, it was suggested that the changes for setting up a workflow and section in Makefile include instructions for setting up codespell as well. * Revert spelling on consequently --------- Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com> Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
This commit is contained in:
@@ -627,14 +627,14 @@ func TestSpanSetAttributes(t *testing.T) {
|
||||
roSpan := span.(ReadOnlySpan)
|
||||
|
||||
// Ensure the span itself is valid.
|
||||
assert.ElementsMatch(t, test.wantAttrs, roSpan.Attributes(), "exected attributes")
|
||||
assert.ElementsMatch(t, test.wantAttrs, roSpan.Attributes(), "expected attributes")
|
||||
assert.Equal(t, test.wantDropped, roSpan.DroppedAttributes(), "dropped attributes")
|
||||
|
||||
snap, ok := te.GetSpan(spanName)
|
||||
require.Truef(t, ok, "span %s not exported", spanName)
|
||||
|
||||
// Ensure the exported span snapshot is valid.
|
||||
assert.ElementsMatch(t, test.wantAttrs, snap.Attributes(), "exected attributes")
|
||||
assert.ElementsMatch(t, test.wantAttrs, snap.Attributes(), "expected attributes")
|
||||
assert.Equal(t, test.wantDropped, snap.DroppedAttributes(), "dropped attributes")
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user