Skip to content

Commit

Permalink
[Master] Add readme documentation for IStorageBuffer (#2045)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSNev committed Apr 11, 2023
1 parent a83241c commit f38e486
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ Most configuration fields are named such that they can be defaulted to falsey. A
| convertUndefined | `any` | undefined | [Optional] Provide user an option to convert undefined field to user defined value.
| eventsLimitInMem | number | 10000 | [Optional] The number of events that can be kept in memory before the SDK starts to drop events when not using Session Storage (the default).
| disableIkeyDeprecationMessage | boolean | true | [Optional] Disable instrumentation Key deprecation error message. If true, error message will NOT be sent. **Note: instrumentation key support will end soon**, see aka.ms/IkeyMigrate for more details.
| bufferOverride <br/><sub>since 2.8.12</sub> | IStorageBuffer | undefined | [Optional] Identifies a simple interface to allow you to override the storage mechanism used for tracking unsent and unacknowledged events, when not provided defaults to using SessionStorage interface. You MUST supply both the `getItem` and `setItem` functions when defined.
### ICookieMgrConfig
Expand Down
1 change: 1 addition & 0 deletions channels/applicationinsights-channel-js/src/Interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export interface ISenderConfig {

/**
* Specify the storage buffer type implementation.
* @since 2.8.12
*/
bufferOverride: IStorageBuffer | false;

Expand Down
19 changes: 19 additions & 0 deletions common/config/rush/npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions shared/AppInsightsCommon/src/Interfaces/IStorageBuffer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";

/**
* Identifies a simple interface to allow you to override the storage mechanism used
* to track unsent and unacknowledged events. When provided it must provide both
* the get and set item functions.
* @since 2.8.12
*/
export interface IStorageBuffer {
/**
* Retrieves the stored value for a given key
Expand Down

0 comments on commit f38e486

Please sign in to comment.