Skip to content

Commit

Permalink
feat: add HTML response handling for job and target endpoints
Browse files Browse the repository at this point in the history
Signed-off-by: Charlie Le <[email protected]>
  • Loading branch information
CharlieTLe committed Jan 24, 2025
1 parent a36367b commit 76cf475
Show file tree
Hide file tree
Showing 5 changed files with 1,104 additions and 6 deletions.
16 changes: 16 additions & 0 deletions .chloggen/otel-targetallocator-html.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: enhancement

# The name of the component, or a single word describing the area of concern, (e.g. collector, target allocator, auto-instrumentation, opamp, github action)
component: target allocator

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: "Adds support for HTML output in the target allocator."

# One or more tracking issues related to the change
issues: [3622]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:
1 change: 1 addition & 0 deletions cmd/otel-allocator/allocation/allocator.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ func (a *allocator) GetTargetsForCollectorAndJob(collector string, job string) [
}

// TargetItems returns a shallow copy of the targetItems map.
// The key is the target item's hash, and the value is the target item.
func (a *allocator) TargetItems() map[string]*target.Item {
a.m.RLock()
defer a.m.RUnlock()
Expand Down
Loading

0 comments on commit 76cf475

Please sign in to comment.