Leon Wang
186c29539f
Fix golint error of package comment form ( #1487 )
...
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-02-04 09:55:44 -08:00
dependabot[bot]
9308d6628e
Bump google.golang.org/api from 0.37.0 to 0.38.0 in /exporters/trace/jaeger ( #1506 )
...
* Bump google.golang.org/api in /exporters/trace/jaeger
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.37.0 to 0.38.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/master/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.37.0...v0.38.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>
2021-02-01 10:57:14 -08:00
ET
1952d7b6af
Reverse order of attribute precedence when merging two Resources ( #1501 )
...
* Reverse order of attribute precedence when merging two Resources
This reflects a change in the specification itself.
https://github.com/open-telemetry/opentelemetry-specification/pull/1345
* Resolves #1500
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-01-29 12:50:55 -08:00
Tyler Yahn
ad7b471586
Remove build flags for runtime/trace support ( #1498 )
...
The minimum version of Go this project supports is 1.14 meaning that all
supported versions of Go support the runtime/trace package. Remove
specific build overrides for versions of Go prior to 1.11 that are not
supported by this project.
2021-01-29 12:41:49 -08:00
Punya Biswal
4bf4b69050
Remove inaccurate and unnecessary import comment ( #1481 )
...
Based on its module, it should be go.opencensus.io/otel/example/opencensus.
However, it's simpler to get rid of it since main packages shouldn't be imported at all.
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-01-29 12:26:49 -08:00
dependabot[bot]
7e19eb6a76
Bump google.golang.org/api from 0.36.0 to 0.37.0 in /exporters/trace/jaeger ( #1504 )
...
* Bump google.golang.org/api in /exporters/trace/jaeger
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.36.0 to 0.37.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/master/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.36.0...v0.37.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: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-01-29 12:08:13 -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
Tyler Yahn
9524ac0954
Update workflows to include main branch as trigger ( #1497 )
2021-01-29 11:37:52 -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]
71ffba39d1
Bump google.golang.org/grpc from 1.34.0 to 1.35.0 in /exporters/otlp ( #1471 )
...
* Bump google.golang.org/grpc from 1.34.0 to 1.35.0 in /exporters/otlp
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.34.0 to 1.35.0.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.34.0...v1.35.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: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-01-19 12:35:26 -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
Hu Shuai
3e96ad1ee6
gitignore: remove unused example path ( #1474 )
...
* gitignore: remove unused example path
Signed-off-by: Hu Shuai <hus.fnst@cn.fujitsu.com>
* example: remove unnecessary file
Signed-off-by: Hu Shuai <hus.fnst@cn.fujitsu.com>
2021-01-19 12:13:49 -08:00
Joshua MacDonald
c56227771d
Histogram aggregator functional options ( #1434 )
...
* Add a Config/Option for histogram
* Just one option here
* Test fixes
* Support and test int64 histograms
* Changelog
* Lint
* Un-export three things.
2021-01-15 18:29:02 -05:00
Joe Schafer
0df8cd620c
Rename Makefile.proto to avoid interpretation as proto file ( #1468 )
...
The main reason for the change is I'm trying to use this library with Bazel,
using gazelle. Gazelle automates creation of the Bazel rules for a Go module.
Gazelle assumes files ending in '.proto' are Protocol Buffer files and invokes
protoc on the file to generate the Go code for the proto file. Unfortunately,
protoc doesn't seem to like Makefiles.
As a side-benefit, editors that don't support Emacs mode hints
`-*- mode: makefile; -*-` won't try to highlight the Makefile as a protobuf
file.
2021-01-15 07:38:29 -08:00
dependabot[bot]
979ff51f22
Bump github.com/stretchr/testify from 1.6.1 to 1.7.0 ( #1453 )
...
* Bump github.com/stretchr/testify from 1.6.1 to 1.7.0
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.6.1...v1.7.0 )
Signed-off-by: dependabot[bot] <support@github.com>
* Auto-fix go.sum changes in dependent modules
* 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-01-14 12:52:19 -08:00
dependabot[bot]
1df8b3b881
Bump github.com/gogo/protobuf from 1.3.1 to 1.3.2 in /exporters/otlp ( #1456 )
...
* Bump github.com/gogo/protobuf from 1.3.1 to 1.3.2 in /exporters/otlp
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>
* 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-01-14 12:40:38 -08:00
dependabot[bot]
4c30a90a45
Bump github.com/stretchr/testify from 1.6.1 to 1.7.0 in /sdk ( #1455 )
...
* Bump github.com/stretchr/testify from 1.6.1 to 1.7.0 in /sdk
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.6.1...v1.7.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: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-01-14 11:40:11 -08:00
dependabot[bot]
5a9f8f6e4e
Bump github.com/stretchr/testify from 1.6.1 to 1.7.0 in /exporters/stdout ( #1454 )
...
* Bump github.com/stretchr/testify in /exporters/stdout
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.6.1...v1.7.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: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-01-14 11:25:33 -08:00
dependabot[bot]
7786f34cff
Bump github.com/stretchr/testify from 1.6.1 to 1.7.0 in /exporters/trace/zipkin ( #1457 )
...
* Bump github.com/stretchr/testify in /exporters/trace/zipkin
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.6.1...v1.7.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: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-01-14 11:16:01 -08:00
dependabot[bot]
4352a7a671
Bump github.com/stretchr/testify from 1.6.1 to 1.7.0 in /exporters/otlp ( #1460 )
...
* Bump github.com/stretchr/testify from 1.6.1 to 1.7.0 in /exporters/otlp
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.6.1...v1.7.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: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-01-14 10:59:38 -08:00
dependabot[bot]
6990b3b3ea
Bump github.com/stretchr/testify from 1.6.1 to 1.7.0 in /exporters/metric/prometheus ( #1461 )
...
* Bump github.com/stretchr/testify in /exporters/metric/prometheus
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.6.1...v1.7.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: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-01-14 10:15:00 -08:00
dependabot[bot]
7af40d2221
Bump github.com/stretchr/testify from 1.6.1 to 1.7.0 in /exporters/trace/jaeger ( #1463 )
...
* Bump github.com/stretchr/testify in /exporters/trace/jaeger
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.6.1...v1.7.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: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-01-14 09:55:32 -08:00
dependabot[bot]
f16f18929b
Bump google.golang.org/grpc in /example/otel-collector ( #1465 )
...
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.34.0 to 1.35.0.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.34.0...v1.35.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-01-14 09:39:14 -08:00
Tyler Yahn
fe363be399
Move Span Event to API ( #1452 )
...
* Move Span Event to API
* Add changes to CHANGELOG
2021-01-14 09:07:25 -08:00
dependabot[bot]
439222408b
Bump google.golang.org/grpc in /example/prom-collector ( #1466 )
...
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.34.0 to 1.35.0.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.34.0...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-14 08:49:18 -08:00
Anthony Mirabella
0aadfb27bc
Prepare release v0.16.0 ( #1464 )
...
* Prepare for releasing v0.16.0
* Prepare CHANGELOG for v0.16.0 release
Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
2021-01-13 20:44:06 -05:00
Joshua MacDonald
207587b6ab
Metric histogram aggregator: Swap in SynchronizedMove to avoid allocations ( #1435 )
...
* Move emptyState() allocations outside lock
* Add more testing
* Re-comment; add CHANGELOG
* Add CHANGELOG PR number
* Update CHANGELOG.md
Co-authored-by: Sam Xie <xsambundy@gmail.com>
Co-authored-by: Bogdan Drutu <lazy@splunk.com>
Co-authored-by: Sam Xie <xsambundy@gmail.com>
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
2021-01-13 20:21:28 -05:00
Sam Xie
c29c6fd1ad
Shutdown underlying span exporter while shutting down BatchSpanProcessor ( #1443 )
...
* Fix BatchSpanProcessor does not shutdown underlying span exporter
* Update CHANGELOG
* Fix tests
* Update CHANGELOG.md
2021-01-13 20:14:03 -05:00
Joshua MacDonald
dfece3d2b9
Combine the Push and Pull metric controllers ( #1378 )
...
* Push->basic
* Repackage
* Rename away from push
* Make exporter optional; export from a separate goroutine
* Move pull_test into controller_test
* Precommit pass
* New OTLP/Prom example
* Precommit
* Fix the example
* Shorten the example
* Test starting controller w/o exporter
* Test export timeout
* Remove ancient example & lint
* go.mod revert & tidy
* Comments
* Tidy a diff
* Tidy a diff
* Move export kind selector in the new example
* Split this test into its original parts
* Reduce diff size
* Changelog
* Remove extra Add/Done pair
* Remove unused stopCh param; document the Stop behavior
* Typo
* Use ctx
* Missed v0.15
* Apply PR feedback
* Precommit pass
* 0.14 -> 0.15 in new file
* Remove diff chunk markers
* Fix OTLP example
* Upstream
* dashpole comments
* aneurysm9 feedback
* Tidy go.sum
2021-01-13 17:07:44 -05:00
Anthony Mirabella
74deeddd26
Handle tracestate in TraceContext propagator ( #1447 )
...
* TraceContext propagator now handles `tracestate`.
Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
* Prevent invalid tracestate from invalidating traceparent.
Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
* Fail tests early if unable to construct expected TraceContext
Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
2021-01-12 11:12:14 -08:00
Joshua MacDonald
49f699d657
Remove Quantile aggregation, DDSketch aggregator; add Exact timestamps ( #1412 )
...
* Remove quantile definition
* Complete removal of Quantile-related function
* Comment in selector/simple/simple.go
* Remove 'quantile' in mmsc
* Rename array->exact
* Update changelog
* Add PR number
* Rename exact benchmark
* New test for exact timestamps
* Add timestamp tests
* More test
* From feedback
* Apply suggestions from code review
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
* Samples->Points
* Rename
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-01-12 10:19:13 -08:00
Eundoo Song
9c949411ce
Rename internal/testing to internal/internaltest ( #1449 )
2021-01-12 08:56:16 -08:00
Krzesimir Nowak
8d80981465
Move gRPC driver to a subpackage and add an HTTP driver ( #1420 )
...
* Move grpc stuff to separate package
* Drop duplicated retryable status code
* Set default port to 4317
This is what the specification says for both gRPC and HTTP.
* Document gRPC option type
* Add an HTTP protocol driver for OTLP exporter
Currently it supports only binary protobuf payloads.
* Move end to end test to a separate package
It also adds some common code mock collectors can use. This will be
useful for testing the HTTP driver.
* Move export data creators to otlptest
It also extends the one record checkpointer a bit. This will be useful
for testing the HTTP driver.
* Add an HTTP mock collector and tests for HTTP driver
* Update changelog
* Do not depend on DefaultTransport
We create our own instance of the transport, which is based on
golang's DefaultTransport. That way we sidestep the issue of the
DefaultTransport being modified/overwritten. We won't have any panics
at init. The cost of it is to keep the transport fields in sync with
DefaultTransport.
* Read the whole response body before closing it
This may help with connection reuse.
* Change options to conform to our style guide
* Add jitter to backoff time
* Test TLS option
* Test extra headers
* Fix a comment
* Increase coverage
* Add a source of the backoff strategy
2021-01-11 22:55:24 -05: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
Eundoo Song
5ed96e9244
Update exporters/otlp Readme.md ( #1441 )
2021-01-07 11:45:35 -08:00
Damien Mathieu
bc9cb5e354
Switch CircleCI badge to GitHub Actions ( #1440 )
...
* switch CircleCI badge to GitHub Actions
* Update README.md
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-01-07 12:48:24 -05:00
Tyler Yahn
716ad08200
Remove CircleCI config ( #1439 )
2021-01-06 15:14:34 -05:00
Azfaar Qureshi
0682db1e23
Adding Security Workflows to GitHub Actions (2/2): gosec workflow ( #1429 )
...
* adding gosec gha workflow
* removing PR and commit triggers
* adding cronjob
Co-authored-by: Azfaar Qureshi <azfaarq@amazon.com>
2021-01-06 12:06:16 -08:00
Azfaar Qureshi
11f732b85c
Adding Security Workflows to GitHub Actions (1/2): codeql workflow ( #1428 )
...
* adding codeql workfklow
* removing PR and commit triggers
* updating changelog
* removing push trigger
Co-authored-by: Azfaar Qureshi <azfaarq@amazon.com>
2021-01-06 11:54:09 -08:00
Andrei Ozerov
40f1c0039d
Add Tracestate into the SamplingResult struct ( #1432 )
...
* Add Tracestate into the SamplingResult struct
Add `trace.Tracestate` field into the SDK `trace.SamplingResult` struct.
Use ParentContext from SamplingParameters to return Tracestate in
`traceIDRatioSampler`, `alwaysOnSampler` and `alwaysOffSampler`.
Add a new test to check that Tracestate is passed.
* Updated CHANGELOG.md for #1432 PR
Added changes description for #1432 .
* Update sdk/trace/sampling_test.go
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-01-06 11:09:48 -08:00
Tyler Yahn
db06c8d1cb
Flush metric events before shutdown in collector example ( #1438 )
...
Fixes #1437
2021-01-06 10:50:58 -08:00
Guangwen Feng
f6f458e155
Fix golint issue caused by typo in trace.go ( #1436 )
...
Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-01-06 10:17:36 -08:00
Joshua MacDonald
fe9d1f7ec5
Use uint64 Count consistently in metric aggregation ( #1430 )
...
* Use uint64 Count consistently
* Number
2021-01-05 23:17:20 -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
Guangwen Feng
1e4c832189
cleanup: drop the removed examples in gitignore ( #1427 )
...
Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
2020-12-30 10:42:15 -08:00
Sam Xie
5c9221cf53
Unify endpoint API that related to OTel exporter ( #1401 )
...
* Rename `otlp.WithAddress` to `otlp.WithEndpoint`
* Unify the term of the endpoint from exporter
* Update CHANGELOG
* Update example/otel-collector/main.go
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
* Switch to the full word collector
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: Tyler Yahn <codingalias@gmail.com>
2020-12-29 11:15:57 -08:00
Joshua MacDonald
045c3ffead
Build scripts: Replace mapfile with read loop for old bash versions ( #1425 )
...
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-12-29 10:43:05 -08:00
Tyler Yahn
2def8c3db0
Add Versioning Documentation ( #1388 )
...
* Initial versioning documentation
* Add changes to changelog
* Remove leftover goals cruft
* Language fixes
* Add contrib policy
* Apply suggestions from code review
Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
* Add info on rc precedence in example
* Rename metrics to metric
* Add sentence about how modules become stable
* Update VERSIONING.md
Co-authored-by: Krzesimir Nowak <qdlacz@gmail.com>
Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
Co-authored-by: Krzesimir Nowak <qdlacz@gmail.com>
2020-12-29 10:34:46 -08: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