Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decouple from basictracer and store IDs as signed integers #21

Merged
merged 16 commits into from
May 2, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Keep all json structs in json_span.go
pglombardo committed Apr 28, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 4595808e1dd231b34ccfd8b79e7fabfb3f763ea5
11 changes: 0 additions & 11 deletions custom.go

This file was deleted.

6 changes: 0 additions & 6 deletions data.go

This file was deleted.

23 changes: 23 additions & 0 deletions json_span.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package instana

import (
ot "github.com/opentracing/opentracing-go"
)

type jsonSpan struct {
TraceID int64 `json:"t"`
ParentID *int64 `json:"p,omitempty"`
@@ -10,3 +14,22 @@ type jsonSpan struct {
From *FromS `json:"f"`
Data *Data `json:"data"`
}

type Data struct {
Service string `json:"service,omitempty"`
SDK *SDKData `json:"sdk"`
}

type CustomData struct {
Tags ot.Tags `json:"tags,omitempty"`
Logs map[uint64]map[string]interface{} `json:"logs,omitempty"`
Baggage map[string]string `json:"baggage,omitempty"`
}

type SDKData struct {
Name string `json:"name"`
Type string `json:"type,omitempty"`
Arguments string `json:"arguments,omitempty"`
Return string `json:"return,omitempty"`
Custom *CustomData `json:"custom,omitempty"`
}
9 changes: 0 additions & 9 deletions sdk.go

This file was deleted.