Meta tags:
description= The Span that is create by the OTEL java agent may not have some of the attributes that are needed for properly evaluating the execution of a request. Specifically, the http.url attribute may be missing. This PR produces a Map of those Span attributes that are required, but may not exist, in the OTEL-provided Span. The contents of this possibly-missing attribute Map may then be used during the evaluation of the request execution.
Note that the possibly-missing attributes are not merged into the Span with this PR. Instead, they are provided as a separate (optional) argument to the Filter.evaluateRequestHeaders() and .evaluateRequestBody() methods.;
Headings (most frequently used words):
span, uh, oh, navigation, build, attributes, which, may, be, missing, from, otel, provided, 372, are, footer, you, diff, view, menu, repository, there, no, files, selected, for, viewing, sure, want, to, change, the, base, filter, by, extension,
Text of the page (most frequently used words):
file (97), instrumentation (73), string (71), java (70), span (67), #hypertrace (52), line (48), hidden (45), characters (45), unicode (45), servlet (37), expand (37), opentelemetry (35), buffer (35), that (34), map (34), show (34), import (34), open (33), headers (33), filter (33), diff (32), org (31), javaagent (31), the (30), number (30), bidirectional (30), collections (27), emptymap (27), this (26), utils (26), public (26), build (25), netty (25), change (23), all (23), new (23), charbufferspanpair (23), src (23), may (22), noop_filter (22), agent (22), kts (21), main (21), gradle (20), comments (18), bufferspanpair (18), api (17), review (17), learn (17), about (17), view (17), boolean (17), github (16), what (16), more (16), core (16), original (15), contains (15), text (15), interpreted (15), compiled (15), differently (15), than (15), appears (15), below (15), editor (15), reveals (15), desktop (15), delete (15), edit (15), return (15), and (15), request (14), changes (14), bytebufferspanpair (14), void (13), body (13), project (13), for (13), deletions (12), boundedbuffersfactory (12), static (12), v3_0 (12), nowrapping (12), possiblymissingattrs (12), evaluaterequestheaders (12), applied (11), while (11), from (11), implementation (11), loading (10), additions (10), throws (10), ioexception (10), testimplementation (10), you (9), reload (9), evaluaterequestbody (9), shouldblock (9), code (8), spanutils (8), filterregistry (8), msg (8), suggestion (7), cannot (7), suggestions (7), down (7), bufferedreader (7), bufferedreaderprintwritercontextaccess (7), createwriter (7), test (7), false (7), final (7), servletinputstream (7), httprequest (7), server (7), sign (7), dependencies (6), addtobufferedreadercontext (6), boundedchararraywriter (6), read (6), private (6), quadfunction (6), contentlength (6), default (6), attributes (6), missing (6), getfilter (6), httpserverblockingrequesthandler (6), commits (6), not (5), security (5), please (5), there (5), getpossiblymissingspanattributes (5), addition (5), otel (5), possiblymissingspanattrs (5), which (5), files (5), base (5), your (5), can (4), pull (4), was (4), error (4), page (4), versions (4), trifunction (4), bufferedreaderinstrumentationtest (4), testing (4), servletstreamcontextaccess (4), createstream (4), boundedbytearrayoutputstream (4), param (4), jetty (4), ctx (4), null (4), headersattr (4), attributekeys (4), v4_1 (4), context (4), v4_0 (4), undertow (4), apache (4), httpasyncclient (4), throwable (4), load (4), bradattraceable (4), provided (4), support (4), copilot (4), community (3), navigation (3), add (3), batch (3), commit (3), retry (3), slf4j (3), javax (3), 115 (3), util (3), reader (3), addtoinputstreamcontext (3), standardcharsets (3), utf_8 (3), servletinputstreaminstrumentationtest (3), httpservletrequest (3), trace (3), true (3), execution (3), servlet30andfilterinstrumentation (3), deletion (3), http (3), testfixtures (3), common (3), evaluate (3), filters (3), override (3), multifilter (3), settings (3), hide (3), whitespace (3), 372 (3), branch (3), refname (3), account (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), contact (2), status (2), privacy (2), terms (2), footer (2), check (2), merge (2), outdated (2), single (2), one (2), viewing (2), toggle (2), extra (2), byte (2), library (2), stringstringmap (2), abstractinstrumentertest (2), assertions (2), contentlengthutils (2), createrequestcharbufferspanpair (2), skip (2), currentspan (2), semconv (2), opentelemetry_semconv (2), eclipse (2), v20160922 (2), forbidden (2), getpossiblymissingspanattributesfromuri (2), getandremove (2), attribute (2), channel (2), attr (2), request_headers (2), instanceof (2), channelread (2), channelhandlercontext (2), object (2), aagent (2), asynchttpclient (2), async (2), client (2), vertx (2), interface (2), getclass (2), getname (2), thrown (2), evaluating (2), logger (2), warn (2), catch (2), try (2), are (2), selected (2), spanutilstest (2), apply (2), split (2), unified (2), failed (2), jump (2), nbsp (2), extension (2), sep (2), 2022 (2), select (2), tree (2), old (2), could (2), tags (2), branches (2), issue (2), insights (2), projects (2), actions (2), repository (2), signed (2), with (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), business (2), fixes (2), products (2), secret (2), perform, action, time, share, personal, information, manage, cookies, docs, 2026, inc, right, now, back, later, queued, multi, pending, reviews, has, been, marked, resolved, must, existing, order, create, valid, applying, deleted, lines, supported, only, per, subset, closed, invalid, because, were, made, annotations, notes, oops, something, went, wrong, val, muzzle, auto, net, bytebuddy, buddy, plugins, 134, 139, readline, 119, read_char_arr_offset, 101, read_calldepth_char_arr, read_char_arr, read_calldepth_iscleared, missingattrmap, boobar, test_span_name, foo, class, extends, junit, jupiter, testbufferedreader, missingattrs, assertequals, substring, tostringwithsuppliedcharset, length, read_call_depth_read_calls_read, read_calldepth_is_cleared, testservletinputstream, ion, charset, createrequestbytebufferspanpair, telemetry, creates, those, 121, 122, resetrequestbodybuffers, unsupportedencodingexception, printwriter, field, virtualfield, user, httpresponse, setstatus, 403, put, attributekey, getkey, headervalue, start, uri, handler, geturi, extensions, web, httpcomponents, result, includes, might, conversations, clear, viewed, types, forgot, 043ac8f, bcc9c1d, hold, shift, click, range, changed, checks, conversation, wants, into, fix, url, some, removed, timeline, become, sure, want, nothing, found, choose, already, clicking, agree, our, occasionally, send, related, emails, statement, service, free, its, maintainers, have, question, items, discussions, requests, issues, message, dismiss, alert, switched, accounts, out, appearance, search, pricing, event, talks, workshops, next, partners, company, forum, events, webinars, blog, resource, connect, resources, premium, advanced, ons, trust, why, see, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, source, latest, improvements, across, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, development, environments, codespaces, analysis, enforcement, automation, ship, coding, tasks, automated, work, hosting, collaboration, platform, menu, content,
Text of the page (random words):
er java show comments view file edit file delete file open in desktop this file contains hidden or 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 show hidden characters original file line number diff line number diff line change expand up 34 6 34 19 public interface filter boolean evaluaterequestheaders span span map string string headers evaluate the execution includes extra attributes which might be missing from the span param span param headers param possiblymissingspanattrs return default boolean evaluaterequestheaders span span map string string headers map string string possiblymissingspanattrs return evaluaterequestheaders span headers evaluate the execution expand all 43 4 56 12 public interface filter return filter result boolean evaluaterequestbody span span string body map string string headers default boolean evaluaterequestbody span span string body map string string headers map string string possiblymissingspanattrs return evaluaterequestbody span body headers 1 change 1 addition 0 deletions 1 instrumentation apache httpasyncclient 4 1 build gradle kts show comments view file edit file delete file open in desktop this file contains hidden or 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 show hidden characters original file line number diff line number diff line change expand up 35 5 35 6 dependencies testimplementation io opentelemetry instrumentation opentelemetry instrumentation api semconv versions opentelemetry_semconv library org apache httpcomponents httpasyncclient 4 1 testimplementation testfixtures project testing common implementation project instrumentation utils 1 change 1 addition 0 deletions 1 instrumentation build gradle kts show comments view file edit file delete file open in desktop this file contains hidden or 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 show hidden characters original file line number diff line number diff line change expand up 19 6 19 7 dependencies implementation project instrumentation undertow undertow 1 4 implementation project instrumentation undertow undertow servlet 1 4 implementation project instrumentation vertx vertx web 3 0 implementation project instrumentation utils implementation project otel extensions expand down 1 change 1 addition 0 deletions 1 instrumentation netty netty 4 0 build gradle kts show comments view file edit file delete file open in desktop this file contains hidden or 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 show hidden characters original file line number diff line number diff line change expand up 88 5 88 6 dependencies testimplementation testfixtures project testing common testimplementation org asynchttpclient async http client 2 0 9 implementation project instrumentation utils 7 changes 6 additions 1 deletion 7 aagent instrumentation hypertrace netty v4_0 server httpserverblockingrequesthandler java show comments view file edit file delete file open in desktop this file contains hidden or 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 show hidden characters original file line number diff line number diff line change expand up 28 6 28 7 import io opentelemetry api trace span import io opentelemetry context context import io opentelemetry javaagent instrumentation hypertrace netty v4_0 attributekeys import io opentelemetry javaagent instrumentation hypertrace utils spanutils import java util map import org hypertrace agent filter filterregistry expand all 50 7 51 11 public void channelread channelhandlercontext ctx object msg if msg instanceof httprequest attribute map string string headersattr channel attr attributekeys request_headers map string string headers headersattr getandremove if headers null filterregistry getfilter evaluaterequestheaders span headers map string string possiblymissingattrs spanutils getpossiblymissingspanattributesfromuri httprequest msg geturi if headers null filterregistry getfilter evaluaterequestheaders span headers possiblymissingattrs forbidden ctx httprequest msg return expand down 1 change 1 addition 0 deletions 1 instrumentation netty netty 4 1 build gradle kts show comments view file edit file delete file open in desktop this file contains hidden or 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 show hidden characters original file line number diff line number diff line change expand up 53 5 53 6 dependencies testimplementation testfixtures project testing common testimplementation io netty netty handler 4 1 0 final testimplementation org asynchttpclient async http client 2 1 0 implementation project instrumentation utils 8 changes 7 additions 1 deletion 8 aagent instrumentation hypertrace netty v4_1 server httpserverblockingrequesthandler java show comments view file edit file delete file open in desktop this file contains hidden or 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 show hidden characters original file line number diff line number diff line change expand up 28 6 28 7 import io opentelemetry api trace span import io opentelemetry context context import io opentelemetry javaagent instrumentation hypertrace netty v4_1 attributekeys import io opentelemetry javaagent instrumentation hypertrace utils spanutils import java util map import org hypertrace agent filter filterregistry expand all 50 7 51 12 public void channelread channelhandlercontext ctx object msg if msg instanceof httprequest attribute map string string headersattr channel attr attributekeys request_headers map string string headers headersattr getandremove if headers null filterregistry getfilter evaluaterequestheaders span headers map string string possiblymissingattrs spanutils getpossiblymissingspanattributesfromuri httprequest msg uri if headers null filterregistry getfilter evaluaterequestheaders span headers possiblymissingattrs forbidden ctx httprequest msg return expand down 1 change 1 addition 0 deletions 1 instrumentation servlet servlet 3 0 build gradle kts show comments view file edit file delete file open in desktop this file contains hidden or 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 show hidden characters original file line number diff line number diff line change expand up 46 4 46 5 dependencies testimplementation org eclipse jetty jetty server 8 1 22 v20160922 testimplementation org eclipse jetty jetty servlet 8 1 22 v20160922 testimplementation io opentelemetry instrumentation opentelemetry instrumentation api semconv versions opentelemetry_semconv implementation project instrumentation utils 6 changes 5 additions 1 deletion 6 instrumentation hypertrace servlet v3_0 nowrapping servlet30andfilterinstrumentation java show comments view file edit file delete file open in desktop this file contains hidden or 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 show hidden characters original file line number diff line number diff line change expand up 115 7 115 11 public static boolean start headers put attributekey getkey headervalue if filterregistry getfilter evaluaterequestheaders currentspan headers map string string possiblymissingattrs utils getpossiblymissingspanattributes httprequest if filterregistry getfilter evaluaterequestheaders currentspan headers possiblymissingattrs httpresponse setstatus 403 skip execution of the user code return true expand down 11 changes 11 additions 0 deletions 11 io opentelemetry javaagent instrumentation hypertrace servlet v3_0 nowrapping utils java show comments view file edit file delete file open in desktop this file contains hidden or 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 show hidden characters original file line number diff line number diff line change expand up 18 6 18 7 import io opentelemetry api trace span import io opentelemetry instrumentation api field virtualfield import io opentelemetry javaagent instrumentation hypertrace utils spanutils import java io bufferedreader import java io printwriter import java io unsupportedencodingexception expand down expand up 121 4 122 14 public static void resetrequestbodybuffers creates a map of those attributes that may be missing from the span param request return public static map string string getpossiblymissingspanattributes httpservletrequest request return spanutils getpossiblymissingspanattributes request 13 changes 11 additions 2 deletions 13 telemetry javaagent instrumentation hypertrace servlet v3_0 nowrapping request utils java show comments view file edit file delete file open in desktop this file contains hidden or 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 show hidden characters original file line number diff line number diff line change expand up 43 11 43 16 public static bytebufferspanpair createrequestbytebufferspanpair if contentlength 0 contentlength contentlengthutils default map string string possiblymissingattrs io opentelemetry javaagent instrumentation hypertrace servlet v3_0 nowrapping utils getpossiblymissingspanattributes httpservletrequest return new bytebufferspanpair span boundedbuffersfactory createstream contentlength charset filter evaluaterequestbody headers headers possiblymissingattrs public static charbufferspanpair createrequestcharbufferspanpair expand all 56 11 61 15 public static charbufferspanpair createrequestcharbufferspanpair if contentlength 0 contentlength contentlengthutils default map string string possiblymissingattrs io opentelemetry javaagent instrumentation hypertrace servlet v3_0 nowrapping utils getpossiblymissingspanattributes httpservletrequest return new charbufferspanpair span boundedbuffersfactory createwriter contentlength filter evaluaterequestbody headers headers possiblymissingattrs expand down 15 changes 9 additions 6 deletions 15 ion hypertrace servlet v3_0 nowrapping request servletinputstreaminstrumentationtest java show comments view file edit file delete file open in desktop this file contains hidden or 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 show hidden characters original file line number diff line number diff line change expand up 25 7 25 7 import javax servlet servletinputstream import org servletstreamcontextaccess import org testservletinputstream import org hypertrace agent core trifunction import org hypertrace agent core quadfunction import org hypertrace agent core instrumentation buffer boundedbuffersfactory import org hypertrace agent core instrumentation buffer boundedbytearrayoutputstream import org hypertrace agent core instrumentation buffer bytebufferspanpair expand all 48 7 48 8 public void read throws ioexception boundedbytearrayoutputstream buffer boundedbuffersfactory createstream standardcharsets utf_8 bytebufferspanpair bufferspanpair new bytebufferspanpair span buffer noop_filter collections emptymap new bytebufferspanpair span buffer noop_filter collections emptymap collections emptymap servletstreamcontextaccess addtoinputstreamcontext servletinputstream bufferspanpair while servletinputstream read 1 expand all 66 7 67 8 public void read_calldepth_is_cleared throws ioexception boundedbytearrayoutputstream buffer boundedbuffersfactory createstream standardcharsets utf_8 bytebufferspanpair bufferspanpair new bytebufferspanpair span buffer noop_filter collections emptymap new bytebufferspanpair span buffer noop_filter collections emptymap collections emptymap servletstreamcontextaccess addtoinputstreamcontext servletinputstream bufferspanpair while servletinputstream read 1 expand all 84 13 86 14 public void read_call_depth_read_calls_read throws ioexception boundedbytearrayoutputstream buffer boundedbuffersfactory createstream standardcharsets utf_8 bytebufferspanpair bufferspanpair new bytebufferspanpair span buffer noop_filter collections emptymap new bytebufferspanpair span buffer noop_filter collections emptymap collections emptymap servletstreamcontextaccess addtoinputstreamcontext servletinputstream bufferspanpair servletinputstream read new byte body length assertions assertequals body substring 2 buffer tostringwithsuppliedcharset private static final trifunction span string map string string boolean noop_filter span body headers false private static final quadfunction span string map string string map string string boolean noop_filter span body headers missingattrs false 24 changes 15 additions 9 deletions 24 agent instrumentation hypertrace servlet rw reader bufferedreaderinstrumentationtest java show comments view file edit file delete file open in desktop this file contains hidden or 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 show hidden characters original file line number diff line number diff line change expand up 24 7 24 7 import java util map import org bufferedreaderprintwritercontextaccess import org testbufferedreader import org hypertrace agent core trifunction import org hypertrace agent core qua...
|