Dynamic Languages (Node.JS, Python, PHP, C/C++, Webserver Agent)

cancel
Showing results for 
Search instead for 
Did you mean: 

[C++][Win 7 x64][4.4.5.0] Unable to add error messages with multiple lines to a BT

[C++][Win 7 x64][4.4.5.0] Unable to add error messages with multiple lines to a BT

Hi,

 

Is it possible to have multi-lined error messagens in C++?

 

We are able to successfuly add an error to a business transaction.

However, multi-lined error messages are shown in 'Potential Issues' and 'Drill Down' 'C++ Error' as a single line, separated with blanks.

We tried '\n', '\r\n', '\n\r', and '\n\n', all with no success.

Our logs confirm we have multi-lined error messages.

 

We are using the appd_bt_add_error() API call:

 

char strErrorMessage[256] = {};

sprintf(strErrorMessage, "LINE_1\nLINE_2\nLINE_3");

appd_bt_add_error(pHandle, APPD_LEVEL_ERROR, strErrorMessage, 1);

 

Our tests use C++, Visual Studio 15, Windows 7 x64, and 4.4.5.0 SDK.

 

Thanks in advance,

 

Ailton

 

Tags (3)
[C++][Win 7 x64][4.4.5.0] Unable to add error messages with multiple lines to a BT
5 REPLIES 5
AppDynamics Team

Re: [C++][Win 7 x64][4.4.5.0] Unable to add error messages with multiple lines to a BT

Hi Ailton,

 

Would you please send us the logs in the /tmp/appd folder for review.

 

Thanks,

Sajna Sreenivasan



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Highlighted

Re: [C++][Win 7 x64][4.4.5.0] Unable to add error messages with multiple lines to a BT

Hi Sajna,

 

Thank you for your promp reply.

 

We're having dificulties to send the logs you requested, since they keep getting refused by the forum:

 

"Correct the highlighted errors and try again.

The file sdk.0.log does not have a valid extension for an attachment and has been removed. jpg,gif,png are the valid extensions.
The file appserver01-appserver01tier1-appserver01node1.0.log does not have a valid extension for an attachment and has been removed. jpg,gif,png are the valid extensions."

 

We tried a zip file, and a renaming it to a jpg file, both without success...

 

Please advise.

 

Best regards,

 

Ailton

 

Re: [C++][Win 7 x64][4.4.5.0] Unable to add error messages with multiple lines to a BT

Hi Sajna, 

 

Please find both log files as part of this post.

AppServer01-AppServer01Tier1-AppServer01Node1.0.log was cropped due to 20.000 characters limit...

 

-------------------------------------------------------------------------------
sdk.0.log - BEGIN...

-------------------------------------------------------------------------------

 

2018-05-28 12:31:46.763652| 2|Agent| Initializing AppDynamics Native SDK 4.4.5.0GA ()
2018-05-28 12:31:46.763652| 2|Agent| Platform endpoint configuration: ControllerInfo {[message redacted to protect privacy] }
2018-05-28 12:31:46.763652| 2|Agent| Creating default agent tenant: AgentInfo[NATIVE_SDK] { app=AppServer01, tier=AppServer01Tier1, node=AppServer01Node1 }
2018-05-28 12:31:46.798654| 4|Agent| getAgentInstance: E_NO_AGENT: no agent named AppServer01Context1 for metric Custom Metrics|AppServer01CustomMetricsSubFolder1|AppServer01CustomMetric1
2018-05-28 12:31:46.798654| 4|Agent| getAgentInstance: E_NO_AGENT: no agent named AppServer01Context1 for metric Custom Metrics|AppServer01CustomMetricsSubFolder1|AppServer01CustomMetric1

 

-------------------------------------------------------------------------------
sdk.0.log - END.

-------------------------------------------------------------------------------

 

-------------------------------------------------------------------------------

AppServer01-AppServer01Tier1-AppServer01Node1.0.log - BEGIN...

-------------------------------------------------------------------------------

 

...

 

2018-05-28 12:33:29.593533| 1|agent| Skipping analytics data request as no new data is available
2018-05-28 12:33:29.593533| 1|agent| Skipping uploading agent logs since there are not any to upload
2018-05-28 12:33:29.594533| 1|agent| Scheduling new object registration request
2018-05-28 12:33:29.594533| 0|protobuf| Object registration request:
{nodeId: 42
accountKey: "0531828a-ff0d-47c5-bf46-8640cf670a6e"
addsToRegister {
parent {
parent {
name: "C++ Error"
}
}
summary: "LINE_1\nLINE_2\nLINE_3"
key: "C++ Error"
applicationComponentNodeId: 42
diagnosticType: "ERROR"
}
}
2018-05-28 12:33:29.594533| 0|httpclient| object registration controller request
hostname: 00000000027B9C40
port: 80
method: 00000000296C33E0
path: 0000000002791060
auth: [message redacted to protect privacy]
headers: {
0000000003F2F3D0 }

2018-05-28 12:33:29.630535| 0|httpclient| object registration controller response
status: 200
headers: {
00000000027A96C0 }

2018-05-28 12:33:29.630535| 0|protobuf| Object registration response:
{applicationDiagnosticDataGroups {
type: ERROR
applicationDiagnosticDatas {
id: 459
name: "C++ Error"
}
}
isSuccess: true
statusMessage: "No transactions sent by agent to register"
}
2018-05-28 12:33:29.664537| 1|agent| Diagnostic registration response: name=C++ Error type=ERROR id=459
2018-05-28 12:33:29.664537| 2|agent| Application Diagnostic Data C++ Error is registered with id 459
2018-05-28 12:33:31.064617| 1|agent| Scheduling new snapshot data request
2018-05-28 12:33:31.106620| 0|protobuf| Snapshot data request:
{nodeId: 42
accountKey: "0531828a-ff0d-47c5-bf46-8640cf670a6e"
skewAdjustedTimestamp: 1527521611064
rsds {
requestGUID: "67ef38d1-339a-4117-823a-4b6ce349ec08"
businessTransactionId: 986
applicationId: 6
applicationComponentId: 10
applicationComponentNodeId: 42
threadName: ""
localStartTime: 1527521530528
serverStartTime: 1527521530528
firstInChain: true
errorOccured: true
userExperience: "ERROR"
timeTakenInMilliSecs: 74668
summary: " - LINE_1\nLINE_2\nLINE_3"
diagnosticSessionGUID: ""
delayedDeepDive: false
errorIDs: 459
errorDetails {
name: "C++ Error"
value: "LINE_1\nLINE_2\nLINE_3"
}
transactionProperties {
name: "ProcessID"
value: "5784"
}
}
}
2018-05-28 12:33:31.135621| 0|httpclient| snapshot data controller request
hostname: 00000000027B9C40
port: 80
method: 00000000296C33E0
path: 0000000002791380
auth: [message redacted to protect privacy]
headers: {
0000000003F2F590 }

2018-05-28 12:33:31.208626| 0|httpclient| snapshot data controller response
status: 200
headers: {
00000000027A9440 }

2018-05-28 12:33:31.209626| 0|protobuf| Snapshot data response:
{controllerTimestamp: 1527521611139
isSuccess: true
statusMessage: "Processed Snapshots."
}
2018-05-28 12:33:39.596105| 1|agent| Skipping object registration request as no new objects were defined
2018-05-28 12:33:41.137194| 1|agent| Skipping snapshot data request as no new snapshots were created
2018-05-28 12:33:47.726570| 2|agent| Scheduling new config update request
2018-05-28 12:33:47.726570| 0|protobuf| Agent configuration request:
{nodeId: 42
applicationId: 6
accountKey:[message redacted to protect privacy]
exitCallInfoRequest {
configurationTimestamp: -1
exitCallBackendIdsToResolveToComponent: 28
exitCallBackendIdsHistoricalState: false
}
agentType: "NATIVE_SDK"
btSLAConfigTimestamp: 1527281948212
datagatherConfigTimestamp: 1516389740073
customExitPointTimestamp: 1516389743196
memoryConfigurationTimestamp: 1516389745682
accountProfileTimestamp: 1524249389984
btConfigTimestamp: 1527281948216
nodePropertiesTimestamp: 1516389743545
analyticsEnabledTransactionsTimestamp: 1527281948212
transactionsTimestamp: 1527281948216
}
2018-05-28 12:33:47.726570| 0|httpclient| config controller request
hostname: 00000000027B9C40
port: 80
method: 00000000296C33E0
path: 00000000027431C0
auth: singularity-agent@customer1:6ec0a9ca-d325-4214-8f42-315502454e6f
headers: {
0000000003F2F910 }

2018-05-28 12:33:47.726570| 1|agent| Skipping reporting events since there are not any to report
2018-05-28 12:33:47.726570| 1|agent| Aggregating runtime statistics for business transactions
2018-05-28 12:33:47.726570| 1|agent| Skip updating statistics, completed transaction count=1
2018-05-28 12:33:47.726570| 1|agent| Skip automatic debug session for BT/U_TSTERROR/CAPTURE_TEST as load was under minimum limit
2018-05-28 12:33:47.762572| 0|httpclient| config controller response
status: 200
headers: {
00000000027A96C0 }

2018-05-28 12:33:47.768573| 0|protobuf| Agent configuration response:
{exitCallInfoReponse {
configurationTimestamp: -1
fullBackendResolutionMapResponse: true
}
nonOriginatingBTConfigurations {
timestamp: -23
}
callgraphConfig {
}
slaQuietTimeMinutes: 30
errorConfiguration {
}
appAgentOperationInfo {
}
backgroundTransactionsTimestamp: -22
serverId: ""
vendorId: ""
controllerVersion: "004-004-000-005"
controllerProfile: "small"

 

...

 

 

-------------------------------------------------------------------------------

AppServer01-AppServer01Tier1-AppServer01Node1.0.log - END.

-------------------------------------------------------------------------------

 

Best regards,

 

Ailton

 

Re: [C++][Win 7 x64][4.4.5.0] Unable to add error messages with multiple lines to a BT

Hi,

 

We submitted a request #136522- [C++][Win7x64][4.4.5.0] Unable to add error messages with multiple lines to a BT.

 

There you can find the requested AppD logs.

 

Best regards,

 

Ailton

 

AppDynamics Team

Re: [C++][Win 7 x64][4.4.5.0] Unable to add error messages with multiple lines to a BT

Thanks, Ailton.We will continue our discussion in the opened ticket.

- Sajna Sreenivasan



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.