dependabot[bot]
ee687ca5c8
Bump github.com/itchyny/gojq from 0.12.2 to 0.12.3 in /internal/tools ( #1774 )
...
Bumps [github.com/itchyny/gojq](https://github.com/itchyny/gojq ) from 0.12.2 to 0.12.3.
- [Release notes](https://github.com/itchyny/gojq/releases )
- [Changelog](https://github.com/itchyny/gojq/blob/main/CHANGELOG.md )
- [Commits](https://github.com/itchyny/gojq/compare/v0.12.2...v0.12.3 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-05 08:54:30 -07:00
Tyler Yahn
604b05cbcf
Store current Span instead of local and remote SpanContext in context.Context ( #1731 )
...
* Store Span instead of local/remote SpanContext in Context
Now that the SpanContext has a remote identifier, storing a Span's
SpanContext two separate ways in a Context (one for local another for
remote) is unnecessary and adds complication throughout the project when
determining heredity of a Span. This moves to storing the Span directly
in the Context uniformly (for both local and remote) as current Span. In
the process, it updates the getter/setter functionality the `trace`
package provides and replaces the distributed heredity logic throughout
the project with just using the current Span as the parent if it exists.
* Update trace/context.go
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
* Assert propagators context remote state
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
2021-03-29 08:55:44 -07:00
dependabot[bot]
b1342fec1f
Bump github.com/golangci/golangci-lint in /internal/tools ( #1743 )
...
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint ) from 1.38.0 to 1.39.0.
- [Release notes](https://github.com/golangci/golangci-lint/releases )
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.38.0...v1.39.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-03-28 09:42:38 -07:00
Tyler Yahn
6defcfdf45
Remove links on NewRoot spans ( #1726 )
...
* Remove links on NewRoot spans
To ensure forwards compatibility, remove the unspecified links currently
set on `NewRoot` spans.
Resolves #461
* Remove links from oteltest tracer to match
2021-03-25 10:36:39 -04:00
Sam Xie
28eaaa9a91
Add a test to prove the Tracer is safe for concurrent calls ( #1665 )
...
* Add test to prove the Tracer is safe for concurrent calls
* Fix NotToPanic of harness never call the input func
* Fix tests
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
2021-03-16 11:55:14 -04:00
Bogdan Drutu
77aa218d4d
Fix issue #1490 , apply same logic as in the SDK ( #1687 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-03-10 11:04:05 -08:00
Bogdan Drutu
9d3416cc91
Fix synchronization issues in global trace delegate implementation ( #1686 )
...
* Fix synchronization issues in global trace delegate implementation
Running tests with `-race` and before the fix
```
➜ opentelemetry-go git:(fixconcurrency) go test -race go.opentelemetry.io/otel/internal/global
==================
WARNING: DATA RACE
Write at 0x00c00010ffc8 by goroutine 28:
go.opentelemetry.io/otel/internal/global.(*tracer).setDelegate.func1()
/Users/lazy/github/opentelemetry-go/internal/global/trace.go:118 +0xf4
sync.(*Once).doSlow()
/usr/local/opt/go/libexec/src/sync/once.go:68 +0x109
sync.(*Once).Do()
/usr/local/opt/go/libexec/src/sync/once.go:59 +0x68
go.opentelemetry.io/otel/internal/global.(*tracer).setDelegate()
/Users/lazy/github/opentelemetry-go/internal/global/trace.go:118 +0x76
go.opentelemetry.io/otel/internal/global.(*tracerProvider).setDelegate()
/Users/lazy/github/opentelemetry-go/internal/global/trace.go:75 +0x16f
go.opentelemetry.io/otel/internal/global.SetTracerProvider.func1()
/Users/lazy/github/opentelemetry-go/internal/global/state.go:65 +0xd0
sync.(*Once).doSlow()
/usr/local/opt/go/libexec/src/sync/once.go:68 +0x109
sync.(*Once).Do()
/usr/local/opt/go/libexec/src/sync/once.go:59 +0x68
go.opentelemetry.io/otel/internal/global.SetTracerProvider()
/Users/lazy/github/opentelemetry-go/internal/global/state.go:57 +0x79
go.opentelemetry.io/otel.SetTracerProvider()
/Users/lazy/github/opentelemetry-go/trace.go:43 +0x388
go.opentelemetry.io/otel/internal/global_test.TestTracerDelegates_MultiGoRoutines()
/Users/lazy/github/opentelemetry-go/internal/global/trace_test.go:177 +0x373
testing.tRunner()
/usr/local/opt/go/libexec/src/testing/testing.go:1194 +0x202
Previous read at 0x00c00010ffc8 by goroutine 29:
go.opentelemetry.io/otel/internal/global.(*tracer).Start()
/Users/lazy/github/opentelemetry-go/internal/global/trace.go:124 +0x64
go.opentelemetry.io/otel/internal/global_test.TestTracerDelegates_MultiGoRoutines.func1()
/Users/lazy/github/opentelemetry-go/internal/global/trace_test.go:165 +0xf1
Goroutine 28 (running) created at:
testing.(*T).Run()
/usr/local/opt/go/libexec/src/testing/testing.go:1239 +0x5d7
testing.runTests.func1()
/usr/local/opt/go/libexec/src/testing/testing.go:1512 +0xa6
testing.tRunner()
/usr/local/opt/go/libexec/src/testing/testing.go:1194 +0x202
testing.runTests()
/usr/local/opt/go/libexec/src/testing/testing.go:1510 +0x612
testing.(*M).Run()
/usr/local/opt/go/libexec/src/testing/testing.go:1418 +0x3b3
go.opentelemetry.io/otel/internal/global_test.TestMain()
/Users/lazy/github/opentelemetry-go/internal/global/internal_test.go:39 +0x4dc
main.main()
_testmain.go:85 +0x271
Goroutine 29 (running) created at:
go.opentelemetry.io/otel/internal/global_test.TestTracerDelegates_MultiGoRoutines()
/Users/lazy/github/opentelemetry-go/internal/global/trace_test.go:160 +0x259
testing.tRunner()
/usr/local/opt/go/libexec/src/testing/testing.go:1194 +0x202
==================
==================
WARNING: DATA RACE
Write at 0x00c00037a000 by goroutine 29:
sync/atomic.StoreInt32()
/usr/local/opt/go/libexec/src/runtime/race_amd64.s:242 +0xb
go.opentelemetry.io/otel/internal/global_test.TestTracerDelegates_MultiGoRoutines.func2.1()
/Users/lazy/github/opentelemetry-go/internal/global/trace_test.go:183 +0x6d
go.opentelemetry.io/otel/internal/global_test.fnTracer.Start()
/Users/lazy/github/opentelemetry-go/internal/global/trace_test.go:81 +0x98
go.opentelemetry.io/otel/internal/global.(*tracer).Start()
/Users/lazy/github/opentelemetry-go/internal/global/trace.go:125 +0xfd
go.opentelemetry.io/otel/internal/global_test.TestTracerDelegates_MultiGoRoutines.func1()
/Users/lazy/github/opentelemetry-go/internal/global/trace_test.go:165 +0xf1
Previous write at 0x00c00037a000 by goroutine 28:
go.opentelemetry.io/otel/internal/global_test.TestTracerDelegates_MultiGoRoutines()
/Users/lazy/github/opentelemetry-go/internal/global/trace_test.go:176 +0x2c4
testing.tRunner()
/usr/local/opt/go/libexec/src/testing/testing.go:1194 +0x202
Goroutine 29 (running) created at:
go.opentelemetry.io/otel/internal/global_test.TestTracerDelegates_MultiGoRoutines()
/Users/lazy/github/opentelemetry-go/internal/global/trace_test.go:160 +0x259
testing.tRunner()
/usr/local/opt/go/libexec/src/testing/testing.go:1194 +0x202
Goroutine 28 (running) created at:
testing.(*T).Run()
/usr/local/opt/go/libexec/src/testing/testing.go:1239 +0x5d7
testing.runTests.func1()
/usr/local/opt/go/libexec/src/testing/testing.go:1512 +0xa6
testing.tRunner()
/usr/local/opt/go/libexec/src/testing/testing.go:1194 +0x202
testing.runTests()
/usr/local/opt/go/libexec/src/testing/testing.go:1510 +0x612
testing.(*M).Run()
/usr/local/opt/go/libexec/src/testing/testing.go:1418 +0x3b3
go.opentelemetry.io/otel/internal/global_test.TestMain()
/Users/lazy/github/opentelemetry-go/internal/global/internal_test.go:39 +0x4dc
main.main()
_testmain.go:85 +0x271
==================
--- FAIL: TestTracerDelegates_MultiGoRoutines (0.20s)
testing.go:1093: race detected during execution of test
FAIL
FAIL go.opentelemetry.io/otel/internal/global 0.920s
FAIL
```
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Update internal/global/trace_test.go
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
* Update internal/global/trace_test.go
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
* Make tests not flaky
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-03-10 08:45:31 -08:00
dependabot[bot]
2b4d5ac329
Bump github.com/golangci/golangci-lint in /internal/tools ( #1671 )
...
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint ) from 1.37.1 to 1.38.0.
- [Release notes](https://github.com/golangci/golangci-lint/releases )
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.37.1...v1.38.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-03-08 12:26:54 -08:00
dependabot[bot]
a3aa9fdab0
Bump github.com/itchyny/gojq from 0.12.1 to 0.12.2 in /internal/tools ( #1672 )
...
* Bump github.com/itchyny/gojq from 0.12.1 to 0.12.2 in /internal/tools
Bumps [github.com/itchyny/gojq](https://github.com/itchyny/gojq ) from 0.12.1 to 0.12.2.
- [Release notes](https://github.com/itchyny/gojq/releases )
- [Changelog](https://github.com/itchyny/gojq/blob/main/CHANGELOG.md )
- [Commits](https://github.com/itchyny/gojq/compare/v0.12.1...v0.12.2 )
Signed-off-by: dependabot[bot] <support@github.com>
* Auto-fix go.sum changes in dependent modules
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-03-08 11:43:04 -08:00
Tyler Yahn
992837f195
Add TracerProvider tests to oteltest harness ( #1607 )
...
* Add TracerProvider tests to oteltest harness
* Update Tracer method docs
* Fix grammar
2021-03-03 12:09:58 -08:00
Punya Biswal
37688ef676
revent end-users from implementing some interfaces ( #1575 )
...
"otel/exporters/otlp/otlphttp".Option
"otel/exporters/stdout".Option
"otel/oteltest".Option
"otel/trace".TracerOption
"otel/trace".SpanOption
"otel/trace".EventOption
"otel/trace".LifeCycleOption
"otel/trace".InstrumentationOption
"otel/sdk/resource".Option
"otel/sdk/trace".ParentBasedSamplerOption
"otel/sdk/trace".ReadOnlySpan
"otel/sdk/trace".ReadWriteSpan
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-02-24 10:03:35 -08:00
dependabot[bot]
5d2636e5bf
Bump github.com/golangci/golangci-lint in /internal/tools ( #1565 )
...
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint ) from 1.36.0 to 1.37.1.
- [Release notes](https://github.com/golangci/golangci-lint/releases )
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.36.0...v1.37.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-21 16:08:09 -05:00
Punya Biswal
ecf65d7968
Rename otel/label -> otel/attribute ( #1541 )
...
* Rename otel/label -> otel/attr
Leave the imported name alone, to avoid a large diff and conflicts
* Better import comment
* Update CHANGELOG.md
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
* otel/attr -> otel/attribute
* Missed the changelog entry
* Get rid of import renaming
* Merge remaining conflicts
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
2021-02-18 12:59:37 -05:00
Punya Biswal
0b1a1c7237
Make oteltest.SpanRecorder into a concrete type ( #1542 )
...
* Make oteltest.SpanRecorder into a concrete time
* Fixes
* Fix PR #
* Re-run
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-02-17 07:31:59 -08:00
Daniil Rutskiy
7de3b58ce9
Remove extra labels types ( #1314 )
...
* Remove extra labels types
Remove the following labels types: INT32, UINT32, UINT64
and FLOAT32.
Fix all extra labels types occurrences in the project.
Signed-off-by: Daniil Rutskiy <dstdfx@gmail.com>
* Update CHANGELOG.md
Signed-off-by: Daniil Rutskiy <dstdfx@gmail.com>
* Delete unused helpers
Signed-off-by: Daniil Rutskiy <dstdfx@gmail.com>
* Convert passed values into remaining types
Signed-off-by: Daniil Rutskiy <dstdfx@gmail.com>
* Clarify func description
* Fix uint64 convertion
Signed-off-by: Daniil Rutskiy <dstdfx@gmail.com>
* Fix uint conversion
Signed-off-by: Daniil Rutskiy <dstdfx@gmail.com>
* Update OTLP exporter label types
Co-authored-by: Tyler Yahn <codingalias@gmail.com>
2021-02-16 16:23:58 -08:00
Punya Biswal
9b242bc401
Organize API into Go modules based on stability and dependencies ( #1528 )
...
* Add a tool to auto-generate replace directives
* Auto-generated changes from previous commit
* Create new modules required for trace release
* otel/metric
* otel/trace
* otel/oteltest
* otel/sdk/export/metric
* otel/sdk/metric
Relates to #1467
* Move metric-related public API out of otel/ pkg
Move GetMeterProvider, Meter and SetMeterProvider to new package
otel/metric/global in the otel/metric module.
This will allow otel/ module to be released as v1.0.
* Include PR references in CHANGELOG
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
* Check for root dir
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-02-12 08:23:51 -08:00
dependabot[bot]
c6a4406a58
Bump github.com/golangci/golangci-lint in /internal/tools ( #1503 )
...
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint ) from 1.35.2 to 1.36.0.
- [Release notes](https://github.com/golangci/golangci-lint/releases )
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.35.2...v1.36.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-29 12:00:07 -08:00
dependabot[bot]
c066f15ed7
Bump github.com/gogo/protobuf from 1.3.1 to 1.3.2 in /internal/tools ( #1478 )
...
Bumps [github.com/gogo/protobuf](https://github.com/gogo/protobuf ) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/gogo/protobuf/releases )
- [Commits](https://github.com/gogo/protobuf/compare/v1.3.1...v1.3.2 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-01-19 12:56:46 -08:00
dependabot[bot]
894e024027
Bump github.com/golangci/golangci-lint in /internal/tools ( #1477 )
...
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint ) from 1.35.0 to 1.35.2.
- [Release notes](https://github.com/golangci/golangci-lint/releases )
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.35.0...v1.35.2 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-01-19 12:45:15 -08:00
dependabot[bot]
515809a845
Bump github.com/itchyny/gojq from 0.12.0 to 0.12.1 in /internal/tools ( #1472 )
...
Bumps [github.com/itchyny/gojq](https://github.com/itchyny/gojq ) from 0.12.0 to 0.12.1.
- [Release notes](https://github.com/itchyny/gojq/releases )
- [Changelog](https://github.com/itchyny/gojq/blob/master/CHANGELOG.md )
- [Commits](https://github.com/itchyny/gojq/compare/v0.12.0...v0.12.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-01-19 12:23:32 -08:00
Eundoo Song
9c949411ce
Rename internal/testing to internal/internaltest ( #1449 )
2021-01-12 08:56:16 -08:00
dependabot[bot]
9332af1b46
Bump github.com/golangci/golangci-lint in /internal/tools ( #1445 )
...
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint ) from 1.34.1 to 1.35.0.
- [Release notes](https://github.com/golangci/golangci-lint/releases )
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.34.1...v1.35.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-11 10:11:57 -08:00
dependabot[bot]
3a337d0b79
Bump github.com/golangci/golangci-lint in /internal/tools ( #1433 )
...
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint ) from 1.33.0 to 1.34.1.
- [Release notes](https://github.com/golangci/golangci-lint/releases )
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.33.0...v1.34.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-03 03:36:47 -05:00
dependabot[bot]
6bcd1085d3
Bump github.com/itchyny/gojq from 0.11.2 to 0.12.0 in /internal/tools ( #1424 )
...
Bumps [github.com/itchyny/gojq](https://github.com/itchyny/gojq ) from 0.11.2 to 0.12.0.
- [Release notes](https://github.com/itchyny/gojq/releases )
- [Changelog](https://github.com/itchyny/gojq/blob/master/CHANGELOG.md )
- [Commits](https://github.com/itchyny/gojq/compare/v0.11.2...v0.12.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-28 11:42:55 -08:00
Eundoo Song
f11a86f780
Fix typo in comment ( #1402 )
2020-12-15 08:06:58 -08:00
Krzesimir Nowak
0021ab0a3a
Rework proto generation ( #1371 )
...
* Rework proto generation
The changes here are:
- Fix the default goal (using "default" target is not doing it).
- Bail out with a useful message if proto submodule is not checked
out.
- Replace the use of docker image with downloading the protoc binary
and building the gogofast plugin ourselves. This gives us a greater
control over the invocation of protoc.
- Use rsync to copy the generated code, instead of pax. Pax did not
work for me (it was complaining about the unknown -0 flag).
The control over the protoc invocation will be useful later, when we
will want to generate a code with data structures in one place and the
collector code elsewhere. The collector code may or may not depend on
gRPC, but data structures have no need for it. This split will happen
when we move the gRPC code out of the OTLP exporter module into a
submodule.
Getting rid of docker has the upside that the generated files do not
belong to root, so there is no hassle of changing the ownership of the
files, and it is not requires to use sudo for the `clean` target. And
not using docker is faster.
The downside of this work is that it depends on more tools: rsync,
unzip and wget. I can only hope that macOS users have those tools too,
and that those tools are invoked the same.
* Update protogen workflow
2020-12-07 09:36:06 -08:00
dependabot[bot]
958041ddf6
Bump github.com/golangci/golangci-lint in /internal/tools ( #1375 )
...
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint ) from 1.32.2 to 1.33.0.
- [Release notes](https://github.com/golangci/golangci-lint/releases )
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.32.2...v1.33.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-11-30 10:38:52 -08:00
Chris Bandy
c857a3da18
Pass options to configured TracerProvider ( #1329 )
...
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-11-17 10:02:21 -08:00
Krzesimir Nowak
3d6e8b5078
Move Version function and code from global to toplevel ( #1330 )
...
* Move global code to toplevel package
* Move version function to toplevel package
* Update changelog
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-11-16 09:30:54 -08:00
Krzesimir Nowak
75d4911c95
Move metric code to a separate package ( #1321 )
...
* Move metrics code to metric package
* Update changelog
2020-11-12 07:28:32 -08:00
dependabot[bot]
1041adaf58
Bump github.com/golangci/golangci-lint in /internal/tools ( #1315 )
...
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint ) from 1.32.1 to 1.32.2.
- [Release notes](https://github.com/golangci/golangci-lint/releases )
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.32.1...v1.32.2 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-09 10:21:12 -08:00
Krzesimir Nowak
3268501910
Move tracing code to trace package ( #1307 )
...
* Move tracing code to trace package
* Update changelog
2020-11-06 17:13:31 -05:00
dependabot[bot]
238d2c015c
Bump github.com/golangci/golangci-lint in /internal/tools ( #1301 )
...
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint ) from 1.32.0 to 1.32.1.
- [Release notes](https://github.com/golangci/golangci-lint/releases )
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.32.0...v1.32.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-01 08:52:11 -08:00
dependabot[bot]
da3f60ac96
Bump github.com/golangci/golangci-lint in /internal/tools ( #1274 )
...
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint ) from 1.31.0 to 1.32.0.
- [Release notes](https://github.com/golangci/golangci-lint/releases )
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.31.0...v1.32.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-10-26 09:25:25 -07:00
Sam Xie
230bdd10f0
Add SpanContextFromContext() ( #1255 )
...
* SpanFromContext returns nil if span not exists
* Add tests for SpanContextFromContext
* Update CHANGELOG
* Update trace.go
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
* SpanFromContext() continue to return a noopSpan{}
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-10-21 17:30:28 -04:00
Tyler Yahn
d6dd84f6fa
Move the otel/api/global package to otel/global ( #1262 )
...
* Move otel/api/global to otel/global
* Update global package references
* Add changes to CHANGELOG
2020-10-17 10:03:48 -07:00
Tyler Yahn
818c7b14b3
Move metric api package into otel
( #1252 )
...
* Update metric Kind to InstrumentKind
* Update all the other modules with Kind rename
* Update metric Descriptor with instrument Kind rename
* Update other modules with Descriptor method rename
* Update OTLP exporter test field name
* Rename kind filenames
* Add changes to CHANGELOG
* Fix documentation for Grouping and PrecomputedSum
* Rename meter.go to metric.go
* Move descriptor.go into metric.go
* Move must.go into metric.go
* Move instruments into metric_instrument.go
* Rename metric api_test.go to metric_test.go
* Move instrumentkind_test.go into metric_test.go
* Rename sdkapi.go metric_sdkapi.go
* Move api/metric into otel
* Update to use moved packages
* Rename otel.go to error_handler.go
* Add changes to CHANGELOG
* Fix merge conflict resolution error
2020-10-17 09:48:21 -07:00
Joshua MacDonald
f60f51d0a2
Move asyncronous metrics state helper out of apimetric/metrictes ( #1234 )
2020-10-11 14:46:29 -04:00
Tyler Yahn
27c84d689d
Move trace api package into otel
( #1229 )
...
* Move trace API to otel
* Move tracetest to oteltest
* Update package documentation
* Remove old api/trace package
* Lint
* Add changes to CHANGELOG
* Add tests for rest of trace API
* Apply suggestions from code review
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
* Documentation fixes
Includes resolutions for review issues.
* Correct CHANGELOG post release
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
2020-10-08 19:58:56 -07:00
dependabot[bot]
b0fd424c20
Bump github.com/itchyny/gojq from 0.11.1 to 0.11.2 in /internal/tools ( #1225 )
...
* Bump github.com/itchyny/gojq from 0.11.1 to 0.11.2 in /internal/tools
Bumps [github.com/itchyny/gojq](https://github.com/itchyny/gojq ) from 0.11.1 to 0.11.2.
- [Release notes](https://github.com/itchyny/gojq/releases )
- [Changelog](https://github.com/itchyny/gojq/blob/master/CHANGELOG.md )
- [Commits](https://github.com/itchyny/gojq/compare/v0.11.1...v0.11.2 )
Signed-off-by: dependabot[bot] <support@github.com>
* Auto-fix go.sum changes in dependent modules
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-10-05 09:12:24 -07:00
Tyler Yahn
5e66340594
Add Baggage API and move Baggage propagator ( #1217 )
...
* Move api/baggage to the propagators package
* Create Baggage API to match specification
* Update CHANGELOG.md
* Baggage API unit tests
* Rename and add unit test
* Update unit test value checking
* Update TODO with issue tracking work.
2020-10-05 11:25:09 -04:00
Tyler Yahn
7d71867644
Rename *Provider names ( #1190 )
...
* Rename *Provider names
There is overlap in naming with MeterProviders and TracerProviders. This
is means the specification is not implemented and these types can not
exist in the same package (#1179 ). This makes each type and related
functions and types explicit.
* Add changes to CHANGELOG
2020-09-23 18:16:13 -04:00
dependabot[bot]
71a1b233b2
Bump github.com/golangci/golangci-lint from 1.30.0 to 1.31.0 in /internal/tools ( #1152 )
...
* Bump github.com/golangci/golangci-lint in /internal/tools
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint ) from 1.30.0 to 1.31.0.
- [Release notes](https://github.com/golangci/golangci-lint/releases )
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.30.0...v1.31.0 )
Signed-off-by: dependabot[bot] <support@github.com>
* Auto-fix go.sum changes in dependent modules
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
2020-09-09 12:49:55 -04:00
Anthony Mirabella
2e221fdf3e
Move tools package under internal ( #1141 )
...
It is not user-facing, so there is no reason to leave it in an
importable location. Fixes #1126 .
2020-09-09 09:14:03 -07:00
JBD
a2c75c6d78
Unexport NoopXXX trace types ( #1134 )
...
* Unexport NoopXXX trace types
The change unexports the noop implementations and provide the NoopProvider function for user to construct noop providers. Users can access noop tracer and noop spans by using the provider.
This change removes the types users should never be directly using from the package. It improves the usability of the API by reducing the API surface to half and helping the user to focus on the canonical APIs.
Fixes #1133
* Provide noop tracer and span for internal use
* Remove obsolete doc
* Use noop span instead of nil
* Fix the broken build
2020-09-08 20:43:35 -04:00
Andrei Ozerov
e3abf31b0b
Make trace testhelpers public ( #1111 )
...
* Make trace testhelpers public
Move MockSpan and MockTracer out of internal package into the api/trace
directory.
* Do not move internal/trace/parent into testing dir
Leave internal/trace/parent/parent.go in the internal directory.
* Fix MockTracer Start method comments
Fix "TraceID".
* Run make precommit to cleanup go.mod
Cleanum go.mod and go.sum.
* Fix tracetest MockSpan structure alignment
Make MockSpan 80 bytes instead of 88 by fixing its alignment.
* Revert bridge/opentracing/internal/mock.go imports
Do not change imports lines in bridge/opentracing/internal/mock.go.
2020-09-01 08:16:05 -07:00
Andrew
1c3626e636
#872 Make metric test helpers public ( #1040 )
...
* Make metric test helpers public
* Move everything metric test related to api/metric/metrictest
* Unify metric measurement assertions
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-08-27 13:03:56 -07:00
Tyler Yahn
f995380e58
Unify api/label
and api/kv
in new label
package ( #1060 )
...
* Move `api/label` to `label`
* Move `api/kv` package contents into `label` package
* Unify label package name
* Move `api/internal/rawhelpers.go` to `internal`
* Propagate replacing `api/kv` with `label` pkg
* golint
* Fix over-aggressive change
* Update Changelog
2020-08-17 20:25:03 -07:00
Tyler Yahn
8f9f2d84cf
Move OTLP to the OTLP exporter ( #1050 )
...
* Move proto to OTLP exporter
* Update OTLP exporter import of proto
* Use gogo protobuf
To stop using the deprecated github.com/golang/protobuf and match what
the collector is doing, switch to generating OTLP with the
github.com/gogo/protobuf/proto instead of
github.com/golang/protobuf/proto.
* Clean dependencies
Remove all protobuf dependencies from otel package and all of its
dependencies.
* Update CHANGELOG
* Clean OTLP exporter go mod
Remove submodule beforehand to avoid unneeded direct dependencies.
* Use default ref for GitHub workflow
* Update path that triggers proto gen action
* Correct license-check exclusion for OTLP
* Update commented location of the OTLP and code
2020-08-10 19:55:52 -07:00
Tyler Yahn
efd4e3a383
Remove google.golang.org/grpc/codes dependency from API by adding an equivalent codes package ( #1046 )
...
* Add otel/codes package to replace google.golang.org/grpc/codes
* Replace google.golang.org/grpc/codes with otel/codes
* Update opentracing bridge to use OTel codes
* Update semconv to use OTel codes
* Update SDK to convert from OTel codes to gRPC
* go mod tidy
* Add change to CHANGELOG
* Fix word from feedback
2020-08-10 09:17:09 -07:00