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
enhance destination fields for Oracle #1031
Comments
@wolframhaussig thanks for your great feedback, again 🙂 I deferred adding these Oracle- and MySQL-specific syntaxes, but I guess there is no way around it (see my comment at the related PR). We will need to handle those. The Regarding the instance parsing and usage, I completely agree this is a valuable information, but we are currently not going to use it (see this comment and the responses to it). A bit of background: the Since these fields are saved for this purpose, if you want it as additional metadata to add context to your DB spans, the right way would probably be adding it as a field under |
@wolframhaussig can you please verify the fix using the relevant artifact? |
@eyalkoren it works! Thank you so much:
Looking forward to it :-) |
Is your feature request related to a problem?
I was eager to see that the new 1.13.0 is finally out. I just tried it on our test system and would like a few enhancements:
We use a tomcat installation with multiple applications which are configured using property files. Our config for the JDBC connection typically looks like this:
app.jdbc.url=jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=6203))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=DB.FQDN.ORG.DE)))
The new agent creates the following destination fields:
As the connection string can contain options which do not belong the destination server(e.g. SERVER=DEDICATED defines that the server will start a dedicated server process for our sessions) those strings might differ while still connecting to the same db.
Describe the solution you'd like
We would like to see the port parsed correctly(6203 instead of 1521) and the address of the destination handled correctly(I am open for discussions about the correct way :-) )
I also saw in the testcases that you do not currently extract the instance name - maybe this could be stored in the context.destination.service.resource?
Additional context
Syntax of the connect strings are defined here: https://docs.oracle.com/en/database/oracle/oracle-database/18/netrf/local-naming-parameters-in-tnsnames-ora-file.html
I don't know how hard it is to implement a solution for the destination adress which fits all - or most - users:
The text was updated successfully, but these errors were encountered: