- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1k
 
Added JDBC db.query.parameter span attributes #13719
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
          
     Merged
      
      
            laurit
  merged 21 commits into
  open-telemetry:main
from
AlixBa:add-operation-parameter-attributes
  
      
      
   
  May 14, 2025 
      
    
  
     Merged
                    Changes from 10 commits
      Commits
    
    
            Show all changes
          
          
            21 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      32aeb83
              
                Added db.operation.parameter span attributes
              
              
                AlixBa d1ebd7e
              
                add backward method on SqlStatementInfo for callers without parameters
              
              
                AlixBa 2d48543
              
                fix SlickTest with span attributes
              
              
                AlixBa 26d635c
              
                Merge branch 'open-telemetry:main' into add-operation-parameter-attri…
              
              
                AlixBa b3365f1
              
                Replace db.operation.parameter by db.query.parameter
              
              
                AlixBa a785cd6
              
                Change -D flag name; explicit Advices override
              
              
                AlixBa 235f221
              
                Merge branch 'open-telemetry:main' into add-operation-parameter-attri…
              
              
                AlixBa 99ce35f
              
                format with spotlessApply
              
              
                AlixBa bf67533
              
                fix tests not updated with latest changes
              
              
                AlixBa 9d6f08a
              
                fix naming conventions & tests database initialization
              
              
                AlixBa f6702f0
              
                only store parameters if feature enabled & factorize agent advices & …
              
              
                AlixBa 07f8c5f
              
                Merge branch 'main' into add-operation-parameter-attributes
              
              
                AlixBa 18eb6f8
              
                send back emptyMap instead of null
              
              
                AlixBa b22ffe6
              
                update metadata.yaml with capture-query-parameters
              
              
                AlixBa 5b872e6
              
                Merge branch 'main' into add-operation-parameter-attributes
              
              
                AlixBa c4c877e
              
                review
              
              
                laurit 949dbb7
              
                Merge branch 'main' into add-operation-parameter-attributes
              
              
                laurit afa52b8
              
                simplify and fix test
              
              
                laurit bd16245
              
                simplify
              
              
                laurit ceff3f5
              
                merge
              
              
                laurit ff936a4
              
                update metadata
              
              
                laurit File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      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
    
  
  
    
              
  
    
      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
    
  
  
    
              
  
    
      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
    
  
  
    
              
  
    
      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
    
  
  
    
              
  
    
      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
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| # Settings for the JDBC instrumentation | ||
| 
     | 
||
| | System property | Type | Default | Description | | ||
| |---------------------------------------------------------|---------|---------|----------------------------------------| | ||
| | `otel.instrumentation.jdbc.statement-sanitizer.enabled` | Boolean | `true` | Enables the DB statement sanitization. | | ||
| | System property | Type | Default | Description | | ||
| |---------------------------------------------------------|---------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| | `otel.instrumentation.jdbc.statement-sanitizer.enabled` | Boolean | `true` | Enables the DB statement sanitization. | | ||
| | `otel.instrumentation.jdbc.capture-query-parameters` | Boolean | `false` | Enables the attribute db.query.parameter.\<key\>.<br/><br/>WARNING: captured query parameters may contain sensitive information such as passwords, personally identifiable information or protected health info. Exposing such info may result in substantial fines and penalties or criminal liability. Consult your peers, superiors and a legal counsel before enabling this option.<br/><br/>This option will disable otel.instrumentation.jdbc.statement-sanitizer | | ||
                
      
                  AlixBa marked this conversation as resolved.
               
              
                Outdated
          
            Show resolved
            Hide resolved
         | 
||
  
    
      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
    
  
  
    
              
  
    
      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
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.