Joshua MacDonald
a7b9d02167
Rename metric instruments to match feature-freeze API specification ( #2202 )
...
* s/ValueRecorder/Histogram/g
* s/ValueObserver/GaugeObserver/g
* s/UpDownSumObserver/UpDownCounterObserver/g
* s/SumObserver/CounterObserver/g
* changelog
* pr num
* unstable->experimental
* Apply suggestions from code review
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
* Apply suggestions from code review
* apply feedback from @evantorrie by hand
* Apply suggestions from code review
Thanks
Co-authored-by: ET <evantorrie@users.noreply.github.com>
* Update sdk/export/metric/metric.go
* Apply suggestions from code review
Thank you @evantorrie !
Co-authored-by: ET <evantorrie@users.noreply.github.com>
* revert getting-started fix let tyler's update remove this text
* more variable name fixes
* test repair
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: ET <evantorrie@users.noreply.github.com>
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
2021-09-01 16:38:37 -04:00
Tyler Yahn
1f527a52ab
Update trace API config creation functions ( #2212 )
...
* Update trace API config creation funcs
Follow our style guide and return the config struct instead of pointers.
* Update changelog with changes
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
2021-09-01 15:44:13 -04:00
Robert Pająk
361a209680
Fix RC2 header in changelog ( #2215 )
2021-09-01 11:53:11 -04:00
José Carlos Chávez
e209ee7585
chore(exporter/zipkin): improves logging on invalid collector. ( #2191 )
...
* chore(exporter/zipkin): improves logging on invalid collector.
* tests: fixes tests.
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
2021-08-30 14:29:22 -04:00
Roni Lichtman
c0c5ef65eb
Fix typos in resource.go. ( #2201 )
...
* Fix typos in resource.go.
* Add a line to CHANGELOG.md with an identifier for the relevant PR.
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
2021-08-30 14:22:06 -04:00
tomas-mota
abf6afe00e
Update otel example guide ( #2210 )
2021-08-30 08:09:46 -07:00
dependabot[bot]
3b05ba021c
Bump actions/setup-go from 2.1.3 to 2.1.4 ( #2206 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 2.1.3 to 2.1.4.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v2.1.3...v2.1.4 )
---
updated-dependencies:
- dependency-name: actions/setup-go
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-29 14:59:58 -07:00
dependabot[bot]
bcd7ff7ba2
Bump codecov/codecov-action from 2.0.2 to 2.0.3 ( #2205 )
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 2.0.2 to 2.0.3.
- [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/v2.0.2...v2.0.3 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
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-29 07:27:40 -07:00
Lucas Käldström
c912b179fd
Print JSON objects to stdout without a wrapping array ( #2196 )
...
* Encode JSON objects to stdout one by one; not wrapped in lists
* Add changelog entry
2021-08-25 08:48:48 -07:00
Lucas Käldström
add511c105
Make WithoutTimestamps work ( #2195 )
...
* Make WithoutTimestamps work
* Add changes to changelog
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: Tyler Yahn <codingalias@gmail.com>
2021-08-23 14:29:51 -07:00
dependabot[bot]
85c27e016f
Bump github.com/golangci/golangci-lint from 1.41.1 to 1.42.0 in /internal/tools ( #2199 )
...
* Bump github.com/golangci/golangci-lint in /internal/tools
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint ) from 1.41.1 to 1.42.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.41.1...v1.42.0 )
---
updated-dependencies:
- dependency-name: github.com/golangci/golangci-lint
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: MrAlias <MrAlias@users.noreply.github.com>
2021-08-23 09:07:23 -07:00
dependabot[bot]
bf6500b35f
Bump google.golang.org/grpc from 1.39.1 to 1.40.0 in /exporters/otlp/otlptrace ( #2184 )
...
* Bump google.golang.org/grpc in /exporters/otlp/otlptrace
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: MrAlias <MrAlias@users.noreply.github.com>
2021-08-19 09:12:46 -07:00
dependabot[bot]
9392af96bb
Bump google.golang.org/grpc in /exporters/otlp/otlptrace/otlptracegrpc ( #2185 )
...
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-19 08:56:10 -07:00
dependabot[bot]
c95694dc74
Bump google.golang.org/grpc from 1.39.1 to 1.40.0 in /example/otel-collector ( #2183 )
...
* Bump google.golang.org/grpc in /example/otel-collector
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:37:01 -07:00
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