1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-10 09:50:58 +02:00
Commit Graph

2233 Commits

Author SHA1 Message Date
thinkerou
2c77e484b4 add lint icon (#58) 2019-07-16 21:52:48 -07:00
Wei Fu
eba4b51b81 set vtype for newVar (#56)
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2019-07-16 10:08:12 -07:00
rghetia
eed647d11f
replace import with vanity url go.opentelemetry.io. (#54) 2019-07-15 14:49:21 -07:00
Joshua MacDonald
961121698b Eliminate Scope/ScopeID, separate API from SDK for metrics/stats (#48)
* Move scope.Active to trace.CurrentSpan

* Remove scope / does not build

* Global tracer

* Checkpoint

* Checkpoint

* Add key/key.go for key.New

* Comments

* Remove more EventID and ScopeID

* Use Handle to describe static objects

* TODOs

* Remove empty file

* Remove singletons

* Update TODOs

* TODO about map update

* Make stats package option aliases (like key has)

* Rename experimental/streaming

* streaming SDK builds w/ many TODOs

* Get the examples building

* Tidy up metric API / add interface check

* Remove logic from the registry; this is now a placeholder
2019-07-11 15:28:38 -07:00
thinkerou
50f16dd16b add circle-ci svg icon to readme (#45) 2019-07-03 07:43:54 -07:00
Isobel Redelmeier
c9df470779 Add Godoc link to README (#44)
[Closes #43]
2019-07-02 16:22:54 -07:00
rghetia
20b2f718b8
Add Circle ci (#41)
* fix compile errors.

* fix lint errors.

* add circle-ci job.

* rename IDHigh to TraceIDHigh

* rename the file.

* add go get for goimports and golangci-lint

* enable GO111MODULE and remove comments.

* remove working dir and update cache name

* Add TEST_RESULT env back.

* run go mod tidy.

* remove go mod download.

* add test coverage.

* fix TraceID.

* fix circlefi config error.

* remove install-tools.

* remove ALL_TEST_SRC from Makefile.
2019-07-02 16:21:24 -07:00
Joshua MacDonald
74eda41032 Add jmacd as a code owner (#42) 2019-07-02 14:03:36 -07:00
thinkerou
dc4a44ca4e split core.go (#39) 2019-07-01 12:17:50 -07:00
thinkerou
56fe193518 check interface implement for metric (#38) 2019-07-01 12:12:35 -07:00
thinkerou
861e3e8776 check interface implement (#37) 2019-07-01 12:11:24 -07:00
thinkerou
a606839692 use function instead of global var (#36)
* use function instead of global var

* fix lack return
2019-07-01 11:28:25 -07:00
thinkerou
252c6b5502 add interface implement check (#35) 2019-07-01 11:27:52 -07:00
thinkerou
c0a5fd12a5 remove duplicate var define (#34) 2019-07-01 11:25:40 -07:00
thinkerou
6d798e3a2f add lacked import and remove unused import (#33) 2019-07-01 11:23:26 -07:00
thinkerou
084f03d098 use grpc.codes.String instead of custom switch (#32)
* use grpc.codes.String instead of custom switch

* remove unused import
2019-06-29 08:07:14 -07:00
thinkerou
d8f9b2546e move Apply method to map.go and check interface implement (#30)
* move Apply method to map.go

* Update map.go
2019-06-28 16:35:42 -07:00
thinkerou
8c47aeb0af update (#31) 2019-06-27 22:59:13 -07:00
thinkerou
36f51385ff update type style (#29) 2019-06-27 21:26:16 -07:00
thinkerou
f5ec719fbd update type style (#28) 2019-06-27 13:34:57 -07:00
rghetia
521a6c40f1
move span, trace and event implementation to sdk. (#27)
* move event to sdk.

* move trace and span implementation to sdk.
- also added noop implementation of span and trace.

* fix review comments.
2019-06-26 22:03:09 -07:00
Isobel Redelmeier
541621cff0 Move basic example into its own subdirectory (#25)
This makes it more obvious (without having to look at the code) that
the basic example is actually an example, rather than something tied to
the other examples or some sort of metadata file.
2019-06-25 23:09:11 -07:00
rghetia
d6d9786732
rename Log and Logf interface to AddEvent and AddEventf. (#22)
* rename Log and Logf interface to AddEvent and AddEventf.
- also remove log package.

* provide only AddEvent interface to Span
- Event can be created using Event specific interface.

* add var trick for Event interface.
2019-06-25 13:50:46 -07:00
rghetia
abccacef85
Revert "Remove log interface from Span." (#21)
This reverts commit a551f0298c.
2019-06-24 10:35:16 -07:00
rghetia
73b844930c
Remove log interface from Span. (#18) 2019-06-21 15:29:29 -07:00
rghetia
3c3532fb04
Add SetStatus, SpanContext and IsRecordingEvent (#12)
* Add span apis.
- SetStatus
- SpanContext
- IsRecordingEvent

* fix formatting.

* use grpc/codes.Code

* change Option to SpanOption

* fix format errors.
2019-06-19 10:44:46 -07:00
Edward Muller
063035e9e0 Add goimports and golangci-lint (#17)
goimports for import rewritting
golangci-lint as the configurable linting swiss army knife.

These tools are recorded in [tools.go](https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module). This records
them as a dependency to make sure we're all using the same tool versions.

To make sure this project's tool's versions don't stomp over versions
from other projects, they are installed in ./.tools, which is
.gitignored.

goimports was run and fixed up a single file:
plugin/httptrace/httptrace.go

I prefer to group local packages below external packages, hence the use
of goimports -local option.

.golangci.yml contains nothing but an incomplete set of defaults ATM.
I expect those to change over time though. ;-)

To use, run:

$ make precommit

Fixes #15
2019-06-18 17:09:49 -07:00
田欧
56ada5a253 init go mod (#11) 2019-06-16 07:30:46 -07:00
rghetia
b4a8d21a36
add license text. (#10) 2019-06-14 13:09:41 -07:00
Joshua MacDonald
e17f4468a6 Golang opentelemetry-go draft API (incomplete) (#9)
* Work in progress from https://github.com/lightstep/opentelemetry-golang-prototype

* Renames

* Rename

* Finish rename

* Rename packages

* README
2019-06-14 11:37:05 -07:00
Sergey Kanzhelev
1429272864
Update CODEOWNERS 2019-05-16 13:36:58 -07:00
Sergey Kanzhelev
b9a4a71080
Create CODEOWNERS 2019-05-16 12:11:18 -07:00
Sergey Kanzhelev
29caadf076
Initial commit 2019-05-16 12:05:27 -07:00