-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove Prefill, add logging of spanID in test logger
- Loading branch information
Showing
6 changed files
with
109 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Things not built, but considered | ||
|
||
These are things that could be built if there is sufficient interest. | ||
|
||
## Per-line prefill | ||
|
||
Add per-line data for all lines in a span. Allow the set of data to | ||
change. | ||
|
||
In the base loggers: | ||
|
||
```go | ||
type Span interface { | ||
... other stuff | ||
|
||
// On a per-Span basis, there will only ever be one outstanding Prefill | ||
// in progress at a time and it will not overlap Flush() | ||
Prefill() Prefilling | ||
|
||
type Prefilling interface { | ||
ObjectParts | ||
Replace() // replaces per-line prefill | ||
AddTo() // adds to per-line prefill | ||
} | ||
} | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
Replace HexBytes with arrays etc can be used as map keys | ||
|
||
Adhere to go spec: Id -> ID | ||
|
||
Replace SpanType & AddData | ||
|
||
Each registered type should be bound to a | ||
specific data type. Replace Span.AddData & span.SetType | ||
something better. | ||
|
||
RegisterSpanType(interface{}) | ||
|
||
Hmmm. AddData(SpanData) | ||
type interface {} | ||
struct tags: | ||
"unique" - map-key-types only, smashes duplicates in an array | ||
"index" - these values should be indexed | ||
"keep-first" - when given duplicates, keep only the first | ||
|
||
Can chaining be done with generics? | ||
|
||
type bot interface{ | ||
Int(string, int64) | ||
Bool(string, bool) | ||
New() bot | ||
} | ||
|
||
type top interface{ | ||
|
||
type Builder[T:any, B:bot] struct { | ||
T | ||
} | ||
func (b Builder[T]) Int8(k string, v int8) Builder[T] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters