Skip to content

Commit c149b86

Browse files
Merge pull request #234139 from AaronMaxwell/aaronmax-CA-connection-string
Switching to connection string code samples
2 parents 49d9b24 + 613bf50 commit c149b86

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/azure-monitor/app/javascript-feature-extensions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const clickPluginConfig = {
4141
};
4242
// Application Insights Configuration
4343
const configObj = {
44-
instrumentationKey: "YOUR INSTRUMENTATION KEY",
44+
connectionString: "YOUR CONNECTION STRING",
4545
extensions: [clickPluginInstance],
4646
extensionConfig: {
4747
[clickPluginInstance.identifier]: clickPluginConfig
@@ -69,7 +69,7 @@ Ignore this setup if you use the npm setup.
6969
}
7070
// Application Insights configuration
7171
var configObj = {
72-
instrumentationKey: "YOUR INSTRUMENTATION KEY",
72+
connectionString: "YOUR CONNECTION STRING",
7373
extensions: [
7474
clickPluginInstance
7575
],
@@ -104,7 +104,7 @@ Ignore this setup if you use the npm setup.
104104
> After `parentDataTag` is used, the SDK begins looking for parent tags across your entire application and not just the HTML element where you used it.
105105
1. The `customDataPrefix` provided by the user should always start with `data-`. An example is `data-sample-`. In HTML, the `data-*` global attributes are called custom data attributes that allow proprietary information to be exchanged between the HTML and its DOM representation by scripts. Older browsers like Internet Explorer and Safari drop attributes they don't understand, unless they start with `data-`.
106106

107-
The asterisk (`*`) in `data-*` can be replaced by any name following the [production rule of XML names](https://www.w3.org/TR/REC-xml/#NT-Name) with the following restrictions:
107+
You can replace the asterisk (`*`) in `data-*` with any name following the [production rule of XML names](https://www.w3.org/TR/REC-xml/#NT-Name) with the following restrictions.
108108
- The name must not start with "xml," whatever case is used for the letters.
109109
- The name must not contain a semicolon (U+003A).
110110
- The name must not contain capital letters.
@@ -167,7 +167,7 @@ The following key properties are captured by default when the plug-in is enabled
167167
| metaDataPrefix | String | Null | N/A | Automatic capture HTML Head's meta element name and content with provided prefix when captured. For example, `custom-` can be used in the HTML meta tag. |
168168
| captureAllMetaDataContent | Boolean | False | N/A | Automatic capture all HTML Head's meta element names and content. Default is false. If enabled, it overrides provided `metaDataPrefix`. |
169169
| parentDataTag | String | Null | N/A | Stops traversing up the DOM to capture content name and value of elements when encountered with this tag. For example, `data-<yourparentDataTag>` can be used in the HTML tags.|
170-
| dntDataTag | String | `ai-dnt` | `data-ai-dnt`| HTML elements with this attribute are ignored by the plug-in for capturing telemetry data.|
170+
| dntDataTag | String | `ai-dnt` | `data-ai-dnt`| The plug-in for capturing telemetry data ignores HTML elements with this attribute.|
171171

172172
### behaviorValidator
173173

@@ -351,7 +351,7 @@ var behaviorMap = {
351351

352352
// Application Insights Configuration
353353
var configObj = {
354-
instrumentationKey: "YOUR INSTRUMENTATION KEY",
354+
connectionString: "YOUR CONNECTION STRING",
355355
extensions: [clickPluginInstance],
356356
extensionConfig: {
357357
[clickPluginInstance.identifier]: {

0 commit comments

Comments
 (0)