dependabot[bot]
0528fa6689
Bump google.golang.org/grpc from 1.39.1 to 1.40.0 in /exporters/otlp/otlpmetric ( #2186 )
...
* Bump google.golang.org/grpc in /exporters/otlp/otlpmetric
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.39.1 to 1.40.0.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.39.1...v1.40.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-type: direct:production
update-type: version-update:semver-minor
...
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: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-08-19 08:28:35 -07:00
Tyler Yahn
3a26ed216a
Deprecate the oteltest package ( #2188 )
...
* Deprecate the oteltest package
* Add PR number to changes in changelog
* Ignore oteltest deprecation in oteltest
2021-08-18 13:34:48 -07:00
Patrice Chalin
c885435fb5
Website: support GH page links to canonical src ( #2189 )
2021-08-18 09:25:44 -07:00
Robert Pająk
6da20a2727
Add cross-module test coverage ( #2182 )
...
* Add cross-module test coverage
* Update Makefile
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-08-14 08:10:15 -07:00
Bhautik Pipaliya
dfc866bd03
Support capturing stack trace ( #2163 )
...
* capturing stack trace support
* added changelog entry
* remove error package stack trace support
* modified unnecessary changes to go.sum files
* added EventOption to enable stack trace capturing
* added tests
* added runtime.Stack method and minor changes
* minor changes
* remove redundant line
* fix gihub check on linter
* fix tests
* fix tests
* Update sdk/trace/trace_test.go
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
* Update sdk/trace/trace_test.go
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
2021-08-13 17:44:18 -04:00
Tyler Yahn
41588fea26
Deprecate the attribute.Any function ( #2181 )
...
* Deprecate the attribute.Any func
* Update CHANGELOG.md
2021-08-13 08:57:33 -07:00
Joshua MacDonald
4e8d667f6e
Support a single Resource per MeterProvider in the SDK ( #2120 )
...
* Remove resource from export.Record
* fix bridge/opencensus
* partial fixes in exporters/otlp/otlpmetric
* Use go-cmp to simplify exporter_test
* OTLP http/grpc
* prometheus
* fix stdout (pending PR 2015)
* oc bridge cleanups
* Lint and changelog
* pr num
* cleanup
* revert
* fix multiple
* always merge the environment
* lint
* precommit
* qualify package names in changelog
2021-08-12 15:44:58 -07:00
Tyler Yahn
a8bb0bf89f
Make the tracetest.SpanRecorder concurrent safe ( #2178 )
...
* Make the tracetest.SpanRecorder concurrent safe
The otelgrpc instrumentation in the contrib repository needs a
concurrent safe implementation as the stream testing is done in a
separate goroutine.
* Refactor concurrency tests
2021-08-12 09:12:31 -07:00
Tyler Yahn
87d09df346
Deprecate Array attribute in favor of *Slice types ( #2162 )
...
* Deprecate Array attribute in favor of *Slice types
* Use new attr types in Jaeger exporter
* Use slice attr types in otlpmetric
* Use slice attr types in otlptrace
* Use slice attr types in zipkin exporter
* Remove array attr test from deprectated oteltest func
* Use StringSlice for cmd arg resource attr
* Add changes to the changelog
* Remove use of deprecated Array func
2021-08-12 08:05:42 -07:00
Joshua MacDonald
df384a9a33
Move InstrumentKind into the new metric/sdkapi package ( #2091 )
...
* Move InstrumentKind into the new metric/sdkapi package
* remove the alias
* remove the alias (everywhere)
* Changelog
* Add a test
* merge updates
* fix changelog
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-08-11 16:02:28 -07:00
Tyler Yahn
1cb5cdca6b
Unify the OTLP attribute transform ( #2170 )
...
* Unify the otlpmetric attribute transform
* Unify attr conversion in otlptrace
2021-08-11 11:30:05 -07:00
Tyler Yahn
a882ee3792
Clarify the attribute package documentation and order/grouping ( #2168 )
...
* Clarify attr key docs and func grouping
* Update KeyValue func docs and ordering
* Move IntValue creation function closer Int64Value
* Apply suggestions from code review
Co-authored-by: Robert Pająk <pellared@hotmail.com>
Co-authored-by: Robert Pająk <pellared@hotmail.com>
2021-08-11 10:08:46 -07:00
Tyler Yahn
5d25c4d20e
Add support for int32 in attribute.Any ( #2169 )
...
* Support int32 for Any func in attribute pkg
* Add changes to changelog
* Update PR number in CHANGELOG.md
2021-08-11 09:32:00 -07:00
Tyler Yahn
2b0e139e10
Refactor attributes benchmark tests ( #2167 )
...
Group benchmarks by type for easier understanding and filtering.
Save output of function calls in benchmarks to file level vars to ensure
the compiler does not optimize away the test.
Unify testing functionality for common benchmark tasks.
2021-08-11 08:49:10 -07:00
dependabot[bot]
4c7470d9fe
Bump google.golang.org/grpc from 1.39.0 to 1.39.1 in /exporters/otlp/otlptrace ( #2176 )
...
* Bump google.golang.org/grpc in /exporters/otlp/otlptrace
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.39.0 to 1.39.1.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.39.0...v1.39.1 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-type: direct:production
update-type: version-update:semver-patch
...
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: MrAlias <MrAlias@users.noreply.github.com>
2021-08-10 10:22:28 -07:00
dependabot[bot]
990c534a8b
Bump google.golang.org/grpc in /example/otel-collector ( #2172 )
...
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.39.0 to 1.39.1.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.39.0...v1.39.1 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-10 08:10:46 -07:00
dependabot[bot]
b45c9d3147
Bump google.golang.org/grpc from 1.39.0 to 1.39.1 in /exporters/otlp/otlpmetric ( #2174 )
...
* Bump google.golang.org/grpc in /exporters/otlp/otlpmetric
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.39.0 to 1.39.1.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.39.0...v1.39.1 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-type: direct:production
update-type: version-update:semver-patch
...
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: MrAlias <MrAlias@users.noreply.github.com>
2021-08-09 12:35:22 -07:00
Tyler Yahn
a3d4ff5c0c
Deprecated the bridge/opencensus/utils package ( #2166 )
...
* Deprecated the bridge/opencensus/utils package
* Update PR number in CHANGELOG.md
* Apply suggestions from code review
2021-08-09 11:33:25 -07:00
Tyler Yahn
b1d1d52959
Move OC bridge integration tests to own mod ( #2165 )
...
Use the default SDK to test the OpenCensus bridge. In order to not add
the SDK as a dependency to the bridge module and require users to depend
on it if they use the bridge these tests are moved to a new dedicated
test module.
2021-08-09 09:24:43 -07:00
Tyler Yahn
89a9489c57
Add OC bridge internal unit tests ( #2164 )
2021-08-09 08:56:24 -07:00
Tyler Yahn
56c743ba79
Allow global ErrorHandler to be set multiple times ( #2160 )
...
* Add benchmarks for error handler
* All multiple global ErrorHandler sets
* Use ioutil instead of io for Discard
* Add changes to changelog
* Add unit tests for delegation
2021-08-06 10:05:32 -07:00
Tyler Yahn
d18c135f58
Add OpenCensus bridge internal package ( #2146 )
...
* Add internal pkg to bridge/opencensus
* Use the bridge/opencensus/internal pkg
* Correct testing comments
* Remove added unit tests
2021-08-06 08:44:07 -07:00
Willy Romão
fcf945a4ab
Just a little typo fix in code documentation. ( #2159 )
...
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-08-04 13:57:01 -07:00
Tyler Yahn
59a82eba5b
Update version.go ( #2157 )
...
Missed in last release.
2021-08-04 16:06:06 -04:00
Koenraad Verheyden
21d4686f4f
Add ErrorHandlerFunc to simplify creating ErrorHandlers ( #2149 )
...
* Add ErrorHandlerFunc to simplify creating ErrorHandlers
* Add CHANGELOG entry
* Apply suggestions from code review
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
* Add interface assertion
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-08-03 15:15:54 -07:00
Anthony Mirabella
23cb939611
Remove internal/semconv-gen
( #2155 )
...
* Removed internal semconvgen
* fix Makefile and update releasing docs
Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
Co-authored-by: Eddy Lin <elindy26@gmail.com>
2021-08-02 14:39:18 -04:00
Yoshi Yamaguchi
39acab3232
Fix code sample in otel.GetTraceProvider ( #2147 )
2021-07-30 11:00:58 -04:00
Tyler Yahn
2b1bb29ef8
Update OpenCensus bridge docs with limitations ( #2145 )
2021-07-29 11:24:52 -07:00
Robert Pająk
fd7c327b55
Fix Jaeger exporter agent port default value and docs ( #2131 )
...
* Fix Jaeger exporter agent port default value and docs
* Update changelog
* Revert example
2021-07-29 13:48:04 -04:00
Sean Schade
b8561785c0
fix(2138): add guard to constructOTResources to return an empty resource ( #2139 )
...
* fix(2138): add guard to constructOTResources to return an empty resource when attributes are not supplied
Fixes: https://github.com/open-telemetry/opentelemetry-go/issues/2138
* Update CHANGELOG.md
Co-authored-by: Robert Pająk <pellared@hotmail.com>
Co-authored-by: Robert Pająk <pellared@hotmail.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-07-29 10:09:07 -07:00
Tyler Yahn
11f62640ee
Add a SpanRecorder to the sdk/trace/tracetest ( #2132 )
...
* Add a SpanRecorder to the sdk/trace/tracetest
* Add changes to changelog
* Run make precommit
* Rename tests
2021-07-29 10:00:58 -07:00
Seng Jea Lee
fd9de7ec02
rename assertsocketbuffersize.go to *_test ( #2136 )
...
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-07-27 08:29:22 -07:00
Yoshi Yamaguchi
a6b4d90c9d
nit doc fix ( #2135 )
2021-07-27 08:14:48 -07:00
Anthony Mirabella
7939841868
pre-release v1.0.0-RC2 ( #2133 )
...
* update versions for 1.0.0-RC2
Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
* Prepare for versions v1.0.0-RC2
* Update CHANGELOG
Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
2021-07-26 15:09:33 -04:00
Tyler Yahn
2501e0fd4f
Use semconv.SchemaURL in STDOUT exporter example ( #2134 )
2021-07-26 14:35:03 -04:00
dependabot[bot]
ef03dbc9f9
Bump codecov/codecov-action from 1 to 2.0.2 ( #2129 )
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 1 to 2.0.2.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v1...v2.0.2 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-major
...
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-07-26 09:34:02 -07:00
Tyler Yahn
bbe6ca40a7
Deprecate oteltest.Harness for removal ( #2123 )
...
* Deprecate oteltest.Harness for removal
* Add changes to changelog
* Alias oteltest.Harness to internaltest
* Update oteltest/tracer_test.go
remove `oteltest` import.
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
2021-07-26 11:40:36 -04:00
Tyler Yahn
7a624ac21c
Deprecated the oteltest.TraceStateFromKeyValues function ( #2122 )
...
* Deprecated the oteltest.TraceStateFromKeyValues func
* Update changelog
* make precommit
2021-07-26 11:12:53 -04:00
Nelson Ghezzi
ece1879fae
Removed dropped link's attributes field from API package ( #2118 )
...
* Removed DroppedAttributeCount field from Link struct
* Reintroduced DroppedAttributeCount with a wrapper struct
* Added Link type in otel/sdk package and used it instead of Trace API equivalent
* Added changelog entry
* Linting fix in changelog
* Deleted duplicated changelog section added by mistake
* Expanded changelog entry and moved it under the 'Added' section
* Explicitly mentioned otel/trace library in changelog entry under 'Removed' section to avoid ambiguity
2021-07-26 11:06:41 -04:00
Tyler Yahn
03902d98bb
Rename sdk/trace/tracetest test.go -> exporter.go ( #2128 )
2021-07-23 13:38:26 -04:00
Tyler Yahn
cb607b0ab1
Unify OTLP exporter retry logic ( #2095 )
...
* Add retry internal package
* Use retry package in connection
* Use retry package for otlpconfig
* Use the retry package in otlptracegrpc
* Use the retry package in otlptracehttp
* Add changes to CHANGELOG
* Lint internal
* Update otlptracehttp tests
* Update dependencies
* Add retry tests to otlptracehttp
* Remove TestRetry from otlptracehttp
2021-07-22 15:07:38 -07:00
Bhautik Pipaliya
abe2243718
API: create new linked span from current context ( #2115 )
...
* API: create new linked span from current context
* ran make precommit
* Update trace/trace.go
* Updated CHANGELOG
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-07-22 11:39:27 -07:00
Tyler Yahn
db81d4aa3d
Update internal/global/trace testing ( #2111 )
...
* Update internal/global/trace testing
Use existing testing types instead of the oteltest package.
* Make precommit
2021-07-22 09:12:21 -07:00
Tyler Yahn
7f10ef72d4
Remove propagation testing types from oteltest ( #2116 )
...
* Add propagationtest package
* Update internal/global to use propagationtest
* Move propagationtest into internal
2021-07-22 08:16:57 -07:00
csuzhang
25d739b0a0
Remove resource.WithBuiltinDetectors() which has not been maintained ( #2097 )
...
* remove resource.WithBuiltinDetectors() which has not been maintained
* add changelog file
* Update CHANGELOG.md
Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
* resolved a repeated conflict
* fix unittest error
* fix unittest error
* fix the PR according to suggestion
* fix unittest fail and del repeated testcase in CI system
* Update CHANGELOG.md
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-07-22 06:47:09 -07:00
Joshua MacDonald
d57c5a5604
Remove several metrics test helpers ( #2105 )
...
* Remove several metrics test helpers
* Lint
* Changelog
* Lint
2021-07-21 13:06:38 -04:00
Tyler Yahn
49359495c7
Simplify trace_context tests ( #2108 )
...
* Simplify trace_context tests
Refactor the propagation/trace_context tests to be targeted at testing
the propagator functionality only and remove extraneous dependencies.
Fix the TraceContext Inject method from injecting the tracestate header
if no value exists.
* Add changes to changelog
2021-07-21 09:15:40 -07:00
Tyler Yahn
56d420112f
Simplify trace context benchmark test ( #2109 )
...
Remove unnecessary use of the http Request type and the oteltest
package.
2021-07-21 07:25:18 -07:00
Tyler Yahn
63dfe64aae
Correct status transform in OTLP exporter ( #2102 )
...
* Correct status transform in OTLP exporter
* Add changes to changelog
2021-07-20 09:06:18 -07:00
Bogdan Drutu
9b1a5f7001
Performance improvement: avoid creating multiple same read-only objects ( #2104 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-07-20 08:57:22 -07:00